From: Kurt Zeilenga Date: Wed, 3 Nov 1999 22:02:30 +0000 (+0000) Subject: no UD_BASE to use for my_ldap_dn2ufn(). Comment out strstr(s,NULL). X-Git-Tag: UCDATA_2_4~247 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eb000d9e6a102fc0f704c9e58382e8e1a6bcba11;p=openldap no UD_BASE to use for my_ldap_dn2ufn(). Comment out strstr(s,NULL). --- diff --git a/clients/ud/util.c b/clients/ud/util.c index 27023de759..24bc11c6e5 100644 --- a/clients/ud/util.c +++ b/clients/ud/util.c @@ -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 */