af-packet: close the socket in case of early fail

pull/3466/head
Eric Leblond 7 years ago committed by Victor Julien
parent 7e8a749227
commit fcd5e138b9

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

Loading…
Cancel
Save