summaryrefslogtreecommitdiff
path: root/nsswitch/wb_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'nsswitch/wb_common.c')
-rw-r--r--nsswitch/wb_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nsswitch/wb_common.c b/nsswitch/wb_common.c
index 2a1795c33b..dcfc8a5156 100644
--- a/nsswitch/wb_common.c
+++ b/nsswitch/wb_common.c
@@ -514,6 +514,10 @@ static int winbindd_read_reply(struct winbindd_response *response)
return -1;
}
+ if (response->length < sizeof(struct winbindd_response)) {
+ return -1;
+ }
+
/* We actually send the pointer value of the extra_data field from
the server. This has no meaning in the client's address space
so we clear it out. */