__str2flags bug with fix attached

Thomas Graf tgraf at infradead.org
Thu May 10 03:12:49 EDT 2012


On Wed, May 09, 2012 at 09:08:30PM -0600, Justin Mayfield wrote:
> I found a minor bug in __str2flags where empty strings or short
> strings will match all or many flags respectively.  Basically the
> test needs to ensure the test string is the same length as the table
> entry before doing a strncasecmp to avoid doing just a prefix test.
> 
> Attached is a fix I'm using.

Good catch, applied. Thanks Justin

~Thomas



More information about the libnl mailing list