summaryrefslogtreecommitdiffstats
path: root/source/lib/samba3/smbpasswd.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-10 10:30:10 +0000
committerAndrew Tridgell <tridge@samba.org>2006-09-10 10:30:10 +0000
commitfb89b611312ece0d9b7784bf27fe952c9dc94e17 (patch)
treeed7be1a7a84437e30d282f7d538354696b5dc44c /source/lib/samba3/smbpasswd.c
parenta29226f4e73781a7c2aede4d6190e4b27eb89ec8 (diff)
downloadsamba-fb89b611312ece0d9b7784bf27fe952c9dc94e17.tar.gz
samba-fb89b611312ece0d9b7784bf27fe952c9dc94e17.tar.xz
samba-fb89b611312ece0d9b7784bf27fe952c9dc94e17.zip
r18323: this function returns a pointer, not a bool
Diffstat (limited to 'source/lib/samba3/smbpasswd.c')
-rw-r--r--source/lib/samba3/smbpasswd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/lib/samba3/smbpasswd.c b/source/lib/samba3/smbpasswd.c
index acba763371f..c19e90219f1 100644
--- a/source/lib/samba3/smbpasswd.c
+++ b/source/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);