From c3674e92f9e696319cff261fb8e26a0be126ace5 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 9 Jan 2004 04:48:40 +0000 Subject: [PATCH] Fix text == NULL bugs in last commit --- libraries/liblutil/passwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/liblutil/passwd.c b/libraries/liblutil/passwd.c index 064343cbc3..ac780b9d4b 100644 --- a/libraries/liblutil/passwd.c +++ b/libraries/liblutil/passwd.c @@ -378,12 +378,12 @@ struct berval * lutil_passwd_hash( const struct pw_scheme *sc = get_scheme( method ); if( sc == NULL ) { - *text = "scheme not recognized"; + if( text ) *text = "scheme not recognized"; return NULL; } if( ! sc->hash_fn ) { - *text = "scheme provided no hash function"; + if( text ) *text = "scheme provided no hash function"; return NULL; } -- 2.39.5