From 9bb1bffe3018aef5e70c411f68863eafdc92fddf Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Thu, 2 Jul 2015 09:00:02 +0530 Subject: lldp: set correct state for processing ldp_receive_frame after correct processing of the packet the state should be LLDP_AGENT_RX_WAIT_FOR_FRAME not LLDP_AGENT_RX_UPDATE_INFO. --- src/libsystemd-network/sd-lldp.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/libsystemd-network/sd-lldp.c') diff --git a/src/libsystemd-network/sd-lldp.c b/src/libsystemd-network/sd-lldp.c index fddda97f52..6a2c05185d 100644 --- a/src/libsystemd-network/sd-lldp.c +++ b/src/libsystemd-network/sd-lldp.c @@ -133,8 +133,6 @@ static int lldp_receive_frame(sd_lldp *lldp, tlv_packet *tlv) { lldp->statistics.stats_frames_in_total ++; - return 0; - out: if (r < 0) log_lldp("Receive frame failed: %s", strerror(-r)); -- cgit v1.2.3-54-g00ecf