]> git.sur5r.net Git - openldap/commitdiff
no UD_BASE to use for my_ldap_dn2ufn(). Comment out strstr(s,NULL).
authorKurt Zeilenga <kurt@openldap.org>
Wed, 3 Nov 1999 22:02:30 +0000 (22:02 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 3 Nov 1999 22:02:30 +0000 (22:02 +0000)
clients/ud/util.c

index 27023de75990dfd1d8a96b09ae8d10e9feeb91e1..24bc11c6e5b5be15d1c7f52b172da1c819a62cf3 100644 (file)
@@ -405,15 +405,19 @@ isadn( char *s )
 char *
 my_ldap_dn2ufn( char *s )
 {
+#ifdef UD_BASE
        register char **cpp;
        static char short_DN[BUFSIZ];
 
-       if (strstr(s, NULL) == NULL)
+       if (strstr(s, UD_BASE) == NULL)
                return(ldap_dn2ufn(s));
        cpp = ldap_explode_dn(s, TRUE);
        sprintf(short_DN, "%s, %s", *cpp, *(cpp + 1));
        ldap_value_free(cpp);
        return(short_DN);
+#else
+       return(ldap_dn2ufn(s));
+#endif
 }
 
 /* return TRUE if this attribute should be printed as a URL */