mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Fix an uninitialized variable found by the IBM checker
BAIL_ON_PTR_ERROR jumps to done: which will access extra_data before it's
initialized.
Stefan, please check!
Volker
(cherry picked from commit b59636f78d
)
This commit is contained in:
parent
26c05a52b7
commit
5663587e5e
@ -394,16 +394,16 @@ wbcErr wbcGetGroups(const char *account,
|
||||
uint32_t i;
|
||||
gid_t *groups = NULL;
|
||||
|
||||
if (!account) {
|
||||
wbc_status = WBC_ERR_INVALID_PARAM;
|
||||
BAIL_ON_WBC_ERROR(wbc_status);
|
||||
}
|
||||
|
||||
/* Initialize request */
|
||||
|
||||
ZERO_STRUCT(request);
|
||||
ZERO_STRUCT(response);
|
||||
|
||||
if (!account) {
|
||||
wbc_status = WBC_ERR_INVALID_PARAM;
|
||||
BAIL_ON_WBC_ERROR(wbc_status);
|
||||
}
|
||||
|
||||
/* Send request */
|
||||
|
||||
strncpy(request.data.username, account, sizeof(request.data.username)-1);
|
||||
|
Loading…
Reference in New Issue
Block a user