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)
commit37f9078f9f18354ffb66f6a8fb1597de01f90f92
treef0f403f688faa1231cba29922de56a71d6f4f578
parentffe6e4faa8ae2fa54972e7ca8bf6616967d34118
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>