Merge branch 'pm-tools'
[linux-2.6-microblaze.git] / net / rxrpc / af_rxrpc.c
index 25d60ed..1f8a144 100644 (file)
@@ -305,7 +305,7 @@ struct rxrpc_call *rxrpc_kernel_begin_call(struct socket *sock,
 
        if (!key)
                key = rx->key;
-       if (key && !key->payload.data)
+       if (key && !key->payload.data[0])
                key = NULL; /* a no-security key */
 
        bundle = rxrpc_get_bundle(rx, trans, key, service_id, gfp);