jvinet / knock

A port-knocking daemon
http://www.zeroflux.org/projects/knock
GNU General Public License v2.0
552 stars 114 forks source link

All attempts ingnored #38

Closed thedolphin closed 8 years ago

thedolphin commented 8 years ago

in sniff() initial 'attempts' variable set to NULL causes to ignore the packet completely. in gdb it looks like this:

523     dprint("%s %s: %s: %s:%d -> %s:%d %d bytes\n", pkt_date, pkt_time,
1527        lp = attempts; /* NULL */
1528        while(lp != NULL) {
1585        attempt = NULL;
1587        for(lp = attempts; lp; lp = lp->next) {
1595        while (found_attempts != NULL) {
1652    } /* end of sniff() */
airwoflgh commented 8 years ago

Ack.