summaryrefslogtreecommitdiff
path: root/source4/lib/samba3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-10 10:30:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:09 -0500
commitfbb301a72d48c531d6b564d87b23e6bf384fd13e (patch)
tree086859895aa6c31aa9f09a1fcdbad893bcf06570 /source4/lib/samba3
parentd2e72c46c116bffc662024408f1391bda57b9849 (diff)
downloadsamba-fbb301a72d48c531d6b564d87b23e6bf384fd13e.tar.gz
samba-fbb301a72d48c531d6b564d87b23e6bf384fd13e.tar.bz2
samba-fbb301a72d48c531d6b564d87b23e6bf384fd13e.zip
r18323: this function returns a pointer, not a bool
(This used to be commit 86ef345cbf98e38b4e135cf52761c7268b608313)
Diffstat (limited to 'source4/lib/samba3')
-rw-r--r--source4/lib/samba3/smbpasswd.c5
1 files changed, 2 insertions, 3 deletions
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);