]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Create an address for sendmsg() to bind unbound socket with
authorDavid Howells <dhowells@redhat.com>
Tue, 13 Sep 2016 07:49:05 +0000 (08:49 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 13 Sep 2016 22:09:13 +0000 (23:09 +0100)
commit84297329a9afac08dd597b48dadfbf8b01cd2ac3
tree927374788e2d27c5e861035aa72e7afcfabc90b8
parentf5b2ca5fd40114dfede9a6623c03f672dbc8463f
rxrpc: Create an address for sendmsg() to bind unbound socket with

Create an address for sendmsg() to bind unbound socket with rather than
using a completely blank address otherwise the transport socket creation
will fail because it will try to use address family 0.

We use the address family specified in the protocol argument when the
AF_RXRPC socket was created and SOCK_DGRAM as the default.  For anything
else, bind() must be used.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/af_rxrpc.c