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 */