ff2b41
From 9562c6da55b17beb54de3a4f2c3a0ef0592dc53f Mon Sep 17 00:00:00 2001
ff2b41
From: Susant Sahani <susant@redhat.com>
ff2b41
Date: Thu, 2 Jul 2015 09:00:02 +0530
ff2b41
Subject: [PATCH] lldp: set correct state for processing
ff2b41
ff2b41
ldp_receive_frame after correct processing of the packet the state
ff2b41
should be LLDP_AGENT_RX_WAIT_FOR_FRAME not LLDP_AGENT_RX_UPDATE_INFO.
ff2b41
ff2b41
(cherry picked from commit 9bb1bffe3018aef5e70c411f68863eafdc92fddf)
ff2b41
ff2b41
Resolves: #1694605
ff2b41
---
ff2b41
 src/libsystemd-network/sd-lldp.c | 2 --
ff2b41
 1 file changed, 2 deletions(-)
ff2b41
ff2b41
diff --git a/src/libsystemd-network/sd-lldp.c b/src/libsystemd-network/sd-lldp.c
ff2b41
index 19ef2ccdbd..d2f21fd10f 100644
ff2b41
--- a/src/libsystemd-network/sd-lldp.c
ff2b41
+++ b/src/libsystemd-network/sd-lldp.c
ff2b41
@@ -136,8 +136,6 @@ static int lldp_receive_frame(sd_lldp *lldp, tlv_packet *tlv) {
ff2b41
 
ff2b41
         lldp->statistics.stats_frames_in_total ++;
ff2b41
 
ff2b41
-        return 0;
ff2b41
-
ff2b41
  out:
ff2b41
         if (r < 0)
ff2b41
                 log_lldp("Receive frame failed: %s", strerror(-r));