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>
Thu, 4 Aug 2016 09:10:19 +0000 (11:10 +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 3ef10f6b2171b078b80d961446d1c364d404a298..19a57118c8a7be22e97892f6dda75be9cc695f93 100644 (file)
@@ -670,9 +670,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) {