winbindd/idmap_rfc2307: fix a crash
authorRalph Boehme <slow@samba.org>
Fri, 24 Jun 2016 16:31:45 +0000 (18:31 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 28 Jun 2016 05:27:18 +0000 (07:27 +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>
source3/winbindd/idmap_rfc2307.c

index 1b5aad9605d25ef90d978cb6c143ee34b9368cd7..34cc5cd179f7184a786435698524f4a4bdb3c623 100644 (file)
@@ -675,9 +675,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) {