swrap: extend input checks in swrap_bind()
authorMichael Adam <obnox@samba.org>
Fri, 30 May 2014 11:06:02 +0000 (13:06 +0200)
committerMichael Adam <obnox@samba.org>
Sun, 1 Jun 2014 08:03:05 +0000 (10:03 +0200)
commit97a65a132d1b14cbfd539f327f260237c1afff3d
tree0fc4d9989e99fbfa1f8879960be47503f1b4dde6
parentaf40930bebe0322d5876bda2aa36598e1bae2056
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>
src/socket_wrapper.c