From e20d6dfb8b0395c56ab41bf6d0fd02334ce04333 Mon Sep 17 00:00:00 2001 From: Mark Valence Date: Sat, 30 Oct 1999 18:33:37 +0000 Subject: [PATCH] bug fixes for ldap_msgtype and ldap_msgid --- libraries/libldap/result.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5