jvinet / knock

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

Fix regression in parsing (#77) #78

Closed dimkr closed 3 years ago

dimkr commented 3 years ago

The null termination using sizeof() is still needed, because if the section is >= sizeof(section) bytes, then strlen() goes beyond the end of the buffer (the sizeof() makes the strlen() safe).