mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
pam_winbind: Use strchr instead of strstr for a single character
This commit is contained in:
parent
b93f07ef41
commit
8cb6f7ec1b
@ -1144,7 +1144,7 @@ static bool winbind_name_list_to_sid_string_list(struct pwb_context *ctx,
|
||||
}
|
||||
|
||||
search_location = name_list;
|
||||
while ((comma = strstr(search_location, ",")) != NULL) {
|
||||
while ((comma = strchr(search_location, ',')) != NULL) {
|
||||
current_name = strndup(search_location,
|
||||
comma - search_location);
|
||||
if (NULL == current_name) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user