From: Mark Valence Date: Sat, 30 Oct 1999 18:33:37 +0000 (+0000) Subject: bug fixes for ldap_msgtype and ldap_msgid X-Git-Tag: UCDATA_2_4~271 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e20d6dfb8b0395c56ab41bf6d0fd02334ce04333;p=openldap bug fixes for ldap_msgtype and ldap_msgid --- diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index a47e0577e9..4ed68c7b8e 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -643,7 +643,7 @@ int ldap_msgtype( LDAPMessage *lm ) { assert( lm != NULL ); - return ( lm == NULL ) ? lm->lm_msgtype : -1; + return ( lm != NULL ) ? lm->lm_msgtype : -1; } @@ -652,7 +652,7 @@ ldap_msgid( LDAPMessage *lm ) { assert( lm != NULL ); - return ( lm == NULL ) ? lm->lm_msgid : -1; + return ( lm != NULL ) ? lm->lm_msgid : -1; }