naccyde / rpms / systemd

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