libwbclient: Fix CID 1414781 Dereference null return value
[metze/samba/wip.git] / nsswitch / libwbclient / wbc_sid.c
index baaeb60d3613b907f5610279e694ad68f8b26189..77445afc5e938e1cb4015e7168a396a9140a13e8 100644 (file)
@@ -812,7 +812,7 @@ wbcErr wbcCtxGetSidAliases(struct wbcContext *ctx,
 
        rids = (uint32_t *)wbcAllocateMemory(response.data.num_entries,
                                             sizeof(uint32_t), NULL);
-       BAIL_ON_PTR_ERROR(sids, wbc_status);
+       BAIL_ON_PTR_ERROR(rids, wbc_status);
 
        s = (const char *)response.extra_data.data;
        for (i = 0; i < response.data.num_entries; i++) {