diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-06-18 09:45:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:17:36 -0500 |
commit | 8961048d2450e01fd44d33d2c514775b071064e0 (patch) | |
tree | cf4cd1fd08f74d4a1f9f20ae354ce53ba02111c6 /source3/libads | |
parent | ec49dff32649b009299978cec5899d03f0fff07b (diff) | |
download | samba-8961048d2450e01fd44d33d2c514775b071064e0.tar.gz samba-8961048d2450e01fd44d33d2c514775b071064e0.tar.bz2 samba-8961048d2450e01fd44d33d2c514775b071064e0.zip |
r16339: Fix Klocwork ID
277 278 (cmd_*)
485 487 488 (ldap.c)
Volker
(This used to be commit 5b1eba76b3ec5cb9b896a9a5641b4d83bdbdd4cf)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/ldap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 13459ba40d..397d8c02f0 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -904,7 +904,13 @@ char *ads_get_dn_canonical(ADS_STRUCT *ads, void *msg) **/ char *ads_parent_dn(const char *dn) { - char *p = strchr(dn, ','); + char *p; + + if (dn == NULL) { + return NULL; + } + + p = strchr(dn, ','); if (p == NULL) { return NULL; |