Skip to content

Commit

Permalink
Issue #38 fix
Browse files Browse the repository at this point in the history
New attempts properly detected in similar sequence fix.
  • Loading branch information
airwoflgh committed Dec 18, 2015
1 parent 03da011 commit 43df371
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/knockd.c
Expand Up @@ -1593,6 +1593,10 @@ void sniff(u_char* arg, const struct pcap_pkthdr* hdr, const u_char* packet)
}
}

if (found_attempts == NULL) {
found_attempts = list_add(found_attempts, NULL);
}

while (found_attempts != NULL) {
attempt = (knocker_t*)found_attempts->data;

Expand Down

0 comments on commit 43df371

Please sign in to comment.