mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
pam_winbind: Remove a nested if-statement. Bo, please check!
This commit is contained in:
parent
8cb6f7ec1b
commit
65710dae84
@ -1199,10 +1199,8 @@ static bool winbind_name_list_to_sid_string_list(struct pwb_context *ctx,
|
||||
* It is malformated parameter here, overwrite the last ','.
|
||||
*/
|
||||
len = strlen(sid_list_buffer);
|
||||
if (len) {
|
||||
if (sid_list_buffer[len - 1] == ',') {
|
||||
sid_list_buffer[len - 1] = '\0';
|
||||
}
|
||||
if ((len != 0) && (sid_list_buffer[len - 1] == ',')) {
|
||||
sid_list_buffer[len - 1] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user