]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/passwd.c
ITS#4840 fix typo
[openldap] / libraries / libldap / passwd.c
index 704e495b1a16dc11ed5ece459cfe67ab26c1d9d9..b6caab58310268cf8afd804b540637882a9f477f 100644 (file)
@@ -156,7 +156,7 @@ ldap_passwd_s(
                return rc;
        }
 
-       if ( ldap_result( ld, msgid, LDAP_MSG_ALL, (struct timeval *) NULL, &res ) == -1 ) {
+       if ( ldap_result( ld, msgid, LDAP_MSG_ALL, (struct timeval *) NULL, &res ) == -1 || !res ) {
                return ld->ld_errno;
        }