diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-09 10:58:47 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-03-10 11:10:30 +0100 |
commit | cdb9e4b8fec1bc8b3e8af05c10b436e6d84b57d3 (patch) | |
tree | 58f7a2afea27c7b84b37494c4e3476c487c742f3 /nsswitch | |
parent | c22151ea3a7fe0e07e46802ec7cd57ba1694262f (diff) | |
download | samba-cdb9e4b8fec1bc8b3e8af05c10b436e6d84b57d3.tar.gz samba-cdb9e4b8fec1bc8b3e8af05c10b436e6d84b57d3.tar.bz2 samba-cdb9e4b8fec1bc8b3e8af05c10b436e6d84b57d3.zip |
libwbclient: Add some input check
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Mar 10 11:10:30 CET 2011 on sn-devel-104
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/wb_common.c | 4 |
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. */ |