The first change involves a sscanf() that has '%n' in the format string, which shouldn't be checked for in the return value (stored in "ntok"). This is done correctly elsewhere in the code (and even commented on) such that the return value is checked for everything but the %n modifier.
And a few lines after this, a sscanf() is done for '%d' and the return value is stored in "ret". However, the same exact line from the above mishap is used here, not even checking the right variable or number of conversions! It checks "ntok" for 2 when it should check "ret" for 1.
Logged In: YES
user_id=541179
Originator: NO
I checked Paolo Abeni's version of the patch into the main and 1.0 branches.
Administrators of the "libpcap" SourceForge project have superseded this tracker item (formerly artifact 1828721, now patch 24) with issue 220 of the "libpcap" GitHub project.