diff options
author | antirez <antirez@gmail.com> | 2013-12-25 18:24:04 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-12-25 18:41:41 +0100 |
commit | cb23d510f49ce0930a55bb07915853a83b7f9867 (patch) | |
tree | a47fc0a60cb154d9548b5eb15280a76fc91948bc /src/anet.c | |
parent | 491f68108868baed5b60045b75099b5475eddd35 (diff) | |
download | redis-cb23d510f49ce0930a55bb07915853a83b7f9867.tar.gz |
Remove useless goto from anetTcpGenericConnect().
Diffstat (limited to 'src/anet.c')
-rw-r--r-- | src/anet.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/anet.c b/src/anet.c index 45b31e785..75bebf7b1 100644 --- a/src/anet.c +++ b/src/anet.c @@ -255,10 +255,8 @@ static int anetTcpGenericConnect(char *err, char *addr, int port, int flags) * have a connected socket. Let's return to the caller. */ goto end; } - if (p == NULL) { + if (p == NULL) anetSetError(err, "creating socket: %s", strerror(errno)); - goto error; - } error: if (s != ANET_ERR) { |