]> git.sur5r.net Git - openldap/commit
ITS#8198 Fix an always-true check
authorLuca Bruno <luca.bruno@rocket-internet.de>
Wed, 5 Nov 2014 15:15:55 +0000 (16:15 +0100)
committerRyan Tandy <ryan@nardis.ca>
Sat, 22 Aug 2015 19:35:34 +0000 (19:35 +0000)
commitba20d70d2bc061f072b155a8f3f562a603a42377
tree961375a370afa6f530c5138ada17209f601d5444
parent0dba4d2c9aa3fa1066d1c84e983805928692e83c
ITS#8198 Fix an always-true check

Fixed asprintf return value check, in order to properly catch
error conditions. This has been caught by clang -Wtautological-compare:

pw-pbkdf2.c:132:17: warning: comparison of unsigned expression < 0 is always false
        if(msg->bv_len < 0){
           ~~~~~~~~~~~ ^ ~

Signed-off-by: Luca Bruno <luca.bruno@rocket-internet.de>
contrib/slapd-modules/passwd/pbkdf2/pw-pbkdf2.c