On Sun, Feb 03, 2013 at 12:09:01PM +0100, Mathias Krause wrote: > The current test for empty strings fails because it is testing the > address of a field, not a pointer. So the test will always be true. > Test for the string length instead. > > Signed-off-by: Mathias Krause <mini...@googlemail.com> > Cc: Steffen Klassert <steffen.klass...@secunet.com>
Good catch. However, what if cru_driver_name isn't NUL-terminated? Thanks, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html