Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux...
[linux-drm-fsl-dcu.git] / net / rxrpc / ar-output.c
index c0042807bfc6a5e2b6e03d70fbcffe097be73326..a40d3afe93b7f3ee657985753c320210815f62a9 100644 (file)
@@ -158,7 +158,7 @@ int rxrpc_client_sendmsg(struct rxrpc_sock *rx, struct rxrpc_transport *trans,
                        service_id = htons(srx->srx_service);
                }
                key = rx->key;
-               if (key && !rx->key->payload.data)
+               if (key && !rx->key->payload.data[0])
                        key = NULL;
                bundle = rxrpc_get_bundle(rx, trans, key, service_id,
                                          GFP_KERNEL);