]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-perl/bind.c
Remove lint
[openldap] / servers / slapd / back-perl / bind.c
index a3d4b900429de8230ad8d837eed1df3fd339bd0c..755a1329b9597a902562798df3818593d6bcd5f4 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /*
  *      Copyright 1999, John C. Quillan, All rights reserved.
- *      Portions Copyright 2002, myinternet pty ltd. All rights reserved.
+ *      Portions Copyright 2002, myinternet Limited. All rights reserved.
  *
  *      Redistribution and use in source and binary forms are permitted only
  *      as authorized by the OpenLDAP Public License.  A copy of this
@@ -20,7 +20,6 @@
 #endif
 
 #include <EXTERN.h>
-#include <XSUB.h>
 #include <perl.h>
 
 #include "perl_back.h"
@@ -85,7 +84,9 @@ perl_back_bind(
 
        Debug( LDAP_DEBUG_ANY, "Perl BIND returned 0x%04x\n", return_code, 0, 0 );
 
-       send_ldap_result( conn, op, return_code, NULL, NULL, NULL, NULL );
+       /* frontend will send result on success (0) */
+       if( return_code != LDAP_SUCCESS )
+               send_ldap_result( conn, op, return_code, NULL, NULL, NULL, NULL );
 
        return ( return_code );
 }