diff options
-rw-r--r-- | source3/nsswitch/libwbclient/wbc_pwd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/nsswitch/libwbclient/wbc_pwd.c b/source3/nsswitch/libwbclient/wbc_pwd.c index d23c378b5f..b5f167369c 100644 --- a/source3/nsswitch/libwbclient/wbc_pwd.c +++ b/source3/nsswitch/libwbclient/wbc_pwd.c @@ -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); |