sctp: Allow bindx_del to accept 0 port
authorVlad Yasevich <vladislav.yasevich@hp.com>
Mon, 18 Apr 2011 19:14:47 +0000 (19:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2011 04:45:21 +0000 (21:45 -0700)
commitee9cbaca7d73ea0098f00ecd10fe6e4a4792e32c
tree248b339ae6e8c048dcbe844c4cd8bcf1ebbbfc2f
parentf246a7b7c5b9df0ea0f0807a7101995af5e83213
sctp: Allow bindx_del to accept 0 port

We allow 0 port when adding new addresses.  It only
makes sence to allow 0 port when removing addresses.
When removing the currently bound port will be used
when the port in the address is set to 0.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c