From dc97a3b39b75228c9b436d416167db30bc48163a Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 12 Feb 2016 16:20:52 +0100 Subject: [PATCH] platform: fix error handling in event_handler_recvmsgs() @abort_parsing is set TRUE at two places, which also explicitly set @err to something. We don't want to reset @err and got to the next @hdr. Instead error out first. --- src/platform/nm-linux-platform.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 3469a8289e..76ca16f306 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -5697,11 +5697,12 @@ continue_reading: } event_seq_check (platform, msg, seq_result); - err = 0; - hdr = nlmsg_next (hdr, &n); if (abort_parsing) goto out; + + err = 0; + hdr = nlmsg_next (hdr, &n); } if (multipart) {