aboutsummaryrefslogtreecommitdiff
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-11-25 10:28:09 -0800
committerGuy Harris <guy@alum.mit.edu>2018-11-25 10:28:09 -0800
commit7f69c9e5ff1f855f8d2834a767272d8a39961974 (patch)
tree341367350967ee56bcbc2792c468a7d941acee66 /pcap-linux.c
parent138fc5f0f599adbd775973ff516f069e9110dc73 (diff)
If activate_new() fails, it's set status; don't overwrite it.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index 55ba6062..51de331d 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -1635,11 +1635,10 @@ pcap_activate_linux(pcap_t *handle)
/*
* We failed to set up to use it, or the kernel
* supports it, but we failed to enable it.
- * ret has been set to the error status to
+ * status has been set to the error status to
* return and, if it's PCAP_ERROR, handle->errbuf
* contains the error message.
*/
- status = ret;
goto fail;
}
}