diff options
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_cache.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index ac3b2661f0..09b10f27f8 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -788,6 +788,10 @@ static void wcache_save_sid_to_name(struct winbindd_domain *domain, NTSTATUS sta struct cache_entry *centry; fstring sid_string; + if (is_null_sid(&sid)) { + return; + } + centry = centry_start(domain, status); if (!centry) return; @@ -807,6 +811,10 @@ static void wcache_save_user(struct winbindd_domain *domain, NTSTATUS status, WI struct cache_entry *centry; fstring sid_string; + if (is_null_sid(&info->user_sid)) { + return; + } + centry = centry_start(domain, status); if (!centry) return; |