]> git.ipfire.org Git - people/ms/suricata.git/blobdiff - src/runmode-af-packet.c
af-packet: only ref mpeer if needed in tpacket v2
[people/ms/suricata.git] / src / runmode-af-packet.c
index c6d79966df8953d6a5e8c9f668673c02a4cc202b..ac0b570a9b6b0dc48b04a8fb01a9e66ea7516ac9 100644 (file)
@@ -679,6 +679,7 @@ finalize:
     if (active_runmode == NULL || strcmp("workers", active_runmode) != 0) {
         /* If we are using copy mode we need a lock */
         aconf->flags |= AFP_SOCK_PROTECT;
+        aconf->flags |= AFP_NEED_PEER;
     }
     return aconf;
 }