swrap: extend input checks in swrap_bind()
authorMichael Adam <obnox@samba.org>
Tue, 3 Jun 2014 13:12:34 +0000 (15:12 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 5 Jun 2014 21:57:10 +0000 (23:57 +0200)
commit8f28674b50e68e4f7815cd843088f54be3d074a4
treea37e26fb03fa27b1cfba6ba0bc8d4622e138566b
parent3700a4625cdf9b5fa6a665157ddb13b60ed61869
swrap: extend input checks in swrap_bind()

Not only check family, but depending on family, also check the length.

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/socket_wrapper/socket_wrapper.c