]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbindd/idmap_rfc2307: fix a crash
authorRalph Boehme <slow@samba.org>
Fri, 24 Jun 2016 16:31:45 +0000 (18:31 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 3 Aug 2016 09:19:13 +0000 (11:19 +0200)
map->map is NULL if lookupsid failed.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11961

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 5e346af078847512e86755a4634583a8a5178c0e)

source3/winbindd/idmap_rfc2307.c

index e9d04c30139d8917042c490b60ef223eb6e0a548..6fd89d768bbbb8cfc9e6c10132e87401e24de11d 100644 (file)
@@ -689,9 +689,7 @@ again:
                        break;
 
                default:
-                       DEBUG(10, ("Nothing to do for SID %s, "
-                                  "previous name lookup failed\n",
-                                  sid_string_dbg(map->map->sid)));
+                       break;
                }
 
                if (!fltr_usr || !fltr_grp) {