Correctly check for errors in strlower_m() returns.
[samba.git] / source3 / winbindd / winbindd_cache.c
index cfa843424a37755163f9788331ab63f13c7e1248..2c9dd4a9b3e19472e9cfd0ceaff1d1b669cb037c 100644 (file)
@@ -1868,7 +1868,7 @@ static NTSTATUS name_to_sid(struct winbindd_domain *domain,
                        if (!strupper_m(discard_const_p(char, domain_name))) {
                                return NT_STATUS_INVALID_PARAMETER;
                        }
-                       strlower_m(discard_const_p(char, name));
+                       (void)strlower_m(discard_const_p(char, name));
                        wcache_save_sid_to_name(domain, status, sid, domain_name, name, *type);
                }
        }