summaryrefslogtreecommitdiff
path: root/nsswitch/pam_winbind.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-06 12:55:00 +0100
committerVolker Lendecke <vl@samba.org>2010-02-06 12:57:32 +0100
commit8cb6f7ec1bdaa086e77fc865c2226151dcd602a7 (patch)
tree73bb36ed5962a6079ecaf8388d5f29a261f4bf8a /nsswitch/pam_winbind.c
parentb93f07ef41fedf9cdb3f48fe77ed070c69ec3608 (diff)
downloadsamba-8cb6f7ec1bdaa086e77fc865c2226151dcd602a7.tar.gz
samba-8cb6f7ec1bdaa086e77fc865c2226151dcd602a7.tar.bz2
samba-8cb6f7ec1bdaa086e77fc865c2226151dcd602a7.zip
pam_winbind: Use strchr instead of strstr for a single character
Diffstat (limited to 'nsswitch/pam_winbind.c')
-rw-r--r--nsswitch/pam_winbind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 52a8daa1e7..fcad15c000 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -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) {