From eb000d9e6a102fc0f704c9e58382e8e1a6bcba11 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 3 Nov 1999 22:02:30 +0000 Subject: [PATCH] no UD_BASE to use for my_ldap_dn2ufn(). Comment out strstr(s,NULL). --- clients/ud/util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */ -- 2.39.5