no UD_BASE to use for my_ldap_dn2ufn(). Comment out strstr(s,NULL).

This commit is contained in:
Kurt Zeilenga 1999-11-03 22:02:30 +00:00
parent 3908eae03f
commit eb000d9e6a

View File

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