From fbb301a72d48c531d6b564d87b23e6bf384fd13e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 10 Sep 2006 10:30:10 +0000 Subject: r18323: this function returns a pointer, not a bool (This used to be commit 86ef345cbf98e38b4e135cf52761c7268b608313) --- source4/lib/samba3/smbpasswd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source4/lib/samba3/smbpasswd.c') diff --git a/source4/lib/samba3/smbpasswd.c b/source4/lib/samba3/smbpasswd.c index acba763371..c19e90219f 100644 --- a/source4/lib/samba3/smbpasswd.c +++ b/source4/lib/samba3/smbpasswd.c @@ -77,9 +77,8 @@ struct samr_Password *smbpasswd_gethexpwd(TALLOC_CTX *mem_ctx, const char *p) p1 = strchr_m(hexchars, hinybble); p2 = strchr_m(hexchars, lonybble); - if (!p1 || !p2) - { - return (False); + if (!p1 || !p2) { + return NULL; } hinybble = PTR_DIFF(p1, hexchars); -- cgit