rxrpc: Don't specify protocol to when creating transport socket
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)
Pass 0 as the protocol argument when creating the transport socket rather
than IPPROTO_UDP.

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

index 782b9adf67cb1ee3f8787fc301a9634840077313..8720be2a625037315a2dfa9f44d6a257e167b7cd 100644 (file)
@@ -103,8 +103,8 @@ static int rxrpc_open_socket(struct rxrpc_local *local)
        _enter("%p{%d}", local, local->srx.transport_type);
 
        /* create a socket to represent the local endpoint */
-       ret = sock_create_kern(&init_net, PF_INET, local->srx.transport_type,
-                              IPPROTO_UDP, &local->socket);
+       ret = sock_create_kern(&init_net, local->srx.transport.family,
+                              local->srx.transport_type, 0, &local->socket);
        if (ret < 0) {
                _leave(" = %d [socket]", ret);
                return ret;