]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/getentry.c
Rework SASL command line arguments. Default is now to authenticate
[openldap] / libraries / libldap / getentry.c
index 2cf17681d8cb2f18fe724e7c5fe601e13f1b3658..ccdca5ea402e074b3feec2515a125a9ae4beb243 100644 (file)
@@ -15,7 +15,6 @@
 #include <stdio.h>
 #include <ac/stdlib.h>
 
-#include <ac/ctype.h>
 #include <ac/socket.h>
 #include <ac/string.h>
 #include <ac/time.h>
@@ -99,7 +98,7 @@ ldap_get_entry_controls(
        assert( sctrls != NULL );
 
        if ( ld == NULL || sctrls == NULL ||
-               entry == NULL || entry->lm_msgtype == LDAP_RES_SEARCH_ENTRY )
+               entry == NULL || entry->lm_msgtype != LDAP_RES_SEARCH_ENTRY )
        {
                return LDAP_PARAM_ERROR;
        }