From fcd5e138b95206a9ac4ba7d04194a62e3f18ae48 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Tue, 28 Aug 2018 22:46:25 +0200 Subject: [PATCH] af-packet: close the socket in case of early fail --- src/source-af-packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source-af-packet.c b/src/source-af-packet.c index c9f56049d1..438feff606 100644 --- a/src/source-af-packet.c +++ b/src/source-af-packet.c @@ -2046,7 +2046,7 @@ static int AFPCreateSocket(AFPThreadVars *ptv, char *devname, int verbose) if_idx = AFPGetIfnumByDev(ptv->socket, devname, verbose); if (if_idx == -1) { - goto error; + goto socket_err; } /* bind socket */ -- 2.47.2