]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/unbind.c
Don't reeval expression
[openldap] / servers / slapd / back-shell / unbind.c
index 9621de1ab36380c9167c26eebb3a31a7ad0fd9d7..d5d936106e6a865b083709476c271dd7545e8e6e 100644 (file)
@@ -1,7 +1,7 @@
 /* unbind.c - shell backend unbind function */
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 
@@ -38,7 +38,7 @@ shell_back_unbind(
        fprintf( wfp, "UNBIND\n" );
        fprintf( wfp, "msgid: %ld\n", (long) op->o_msgid );
        print_suffixes( wfp, be );
-       fprintf( wfp, "dn: %s\n", (conn->c_dn ? conn->c_dn : "") );
+       fprintf( wfp, "dn: %s\n", (conn->c_dn.bv_len ? conn->c_dn.bv_val : "") );
        fclose( wfp );
 
        /* no response to unbind */