diff options
| author | David Horsley <widdma@gmail.com> | 2018-06-28 10:16:54 -0400 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-06-28 08:36:48 -0700 |
| commit | 63418ae95eb9d61d2cffa56f7e8fbdb48aaaf703 (patch) | |
| tree | f0cbef2f5d67f6e2bb4dab4870a4c1c2afabf2dc /src/core/url.c | |
| parent | 251553b13e6bc8019914b9edd1292f97e856dd43 (diff) | |
| download | nng-63418ae95eb9d61d2cffa56f7e8fbdb48aaaf703.tar.gz nng-63418ae95eb9d61d2cffa56f7e8fbdb48aaaf703.tar.bz2 nng-63418ae95eb9d61d2cffa56f7e8fbdb48aaaf703.zip | |
nni_url_parse does not handle ipc and inproc
a missing return causes ipc and inproc URLs to be parsed as usual. Results in a memory leak.
Diffstat (limited to 'src/core/url.c')
| -rw-r--r-- | src/core/url.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/url.c b/src/core/url.c index dfbd2a88..5e2317ea 100644 --- a/src/core/url.c +++ b/src/core/url.c @@ -307,6 +307,7 @@ nni_url_parse(nni_url **urlp, const char *raw) goto error; } *urlp = url; + return (0); } // Look for host part (including colon). Will be terminated by |
