diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-18 18:56:16 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-18 18:56:16 -0800 |
| commit | e6cded3832c9e92c922d49d824b446ce33fbf120 (patch) | |
| tree | f1ee4ab169c4e69c69699b2ce5c37bf368fc51e5 /src/transport | |
| parent | 8049d822b3d8ea8bd11793369004c638d833964e (diff) | |
| download | nng-e6cded3832c9e92c922d49d824b446ce33fbf120.tar.gz nng-e6cded3832c9e92c922d49d824b446ce33fbf120.tar.bz2 nng-e6cded3832c9e92c922d49d824b446ce33fbf120.zip | |
Address segfault in TCP, and fix wild card handling.
Diffstat (limited to 'src/transport')
| -rw-r--r-- | src/transport/tcp/tcp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/tcp/tcp.c b/src/transport/tcp/tcp.c index 09a2b385..d18fd289 100644 --- a/src/transport/tcp/tcp.c +++ b/src/transport/tcp/tcp.c @@ -343,6 +343,9 @@ nni_tcp_ep_connect(void *arg, void **pipep) if ((rv = nni_parseaddr(rempart, &host, &port)) != 0) { return (rv); } + if (host == NULL) { + return (NNG_EADDRINVAL); + } if ((rv = nni_plat_lookup_host(host, &remaddr, flag)) != 0) { return (rv); } |
