diff options
-rw-r--r-- | rpc/rpc-lib/src/rpc-clnt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c index 58e00d44a6c..34e0efb030f 100644 --- a/rpc/rpc-lib/src/rpc-clnt.c +++ b/rpc/rpc-lib/src/rpc-clnt.c @@ -1085,6 +1085,9 @@ rpc_clnt_start (struct rpc_clnt *rpc) { struct rpc_clnt_connection *conn = NULL; + if (!rpc) + return -1; + conn = &rpc->conn; rpc_clnt_reconnect (conn->trans); |