diff options
-rw-r--r-- | rpc/rpc-lib/src/rpc-transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpc-transport.c b/rpc/rpc-lib/src/rpc-transport.c index ca5d51488f2..e224dcc022e 100644 --- a/rpc/rpc-lib/src/rpc-transport.c +++ b/rpc/rpc-lib/src/rpc-transport.c @@ -669,7 +669,7 @@ rpc_transport_inet_options_build (dict_t **options, const char *hostname, goto out; host = gf_strdup ((char*)hostname); - if (!hostname) { + if (!host) { ret = -1; goto out; } |