]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-dnssrv/search.c
ITS#8605 - spelling fixes
[openldap] / servers / slapd / back-dnssrv / search.c
index a91c1e1043ebd255de0379ba6f85c3c3db9c49da..397e3f9b7cb8508390dbd7e99c2282362f665543 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2000-2013 The OpenLDAP Foundation.
+ * Copyright 2000-2017 The OpenLDAP Foundation.
  * Portions Copyright 2000-2003 Kurt D. Zeilenga.
  * All rights reserved.
  *
@@ -93,7 +93,7 @@ dnssrv_back_search(
        hosts = ldap_str2charray( hostlist, " " );
 
        if( hosts == NULL ) {
-               Debug( LDAP_DEBUG_TRACE, "DNSSRV: str2charrary error\n", 0, 0, 0 );
+               Debug( LDAP_DEBUG_TRACE, "DNSSRV: str2charray error\n", 0, 0, 0 );
                send_ldap_error( op, rs, LDAP_OTHER,
                        "problem processing DNS SRV records for DN" );
                goto done;
@@ -228,7 +228,7 @@ dnssrv_back_search(
                send_ldap_result( op, rs );
        }
 
-       if ( refdn ) free( refdn );
+       free( refdn );
        if ( nrefdn.bv_val ) free( nrefdn.bv_val );
 
 done: