diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-09-01 13:50:40 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-09-01 13:50:40 -0800 |
| commit | 02667589068eec6c44d3cabd40507330f9af77af (patch) | |
| tree | 6c8c2389f30da432729a02e881ce8328807d648d /lib/libbindle | |
| parent | eb494e7840440fc51c50d940c7e9df233273a5b2 (diff) | |
| download | bindletools-02667589068eec6c44d3cabd40507330f9af77af.tar.gz bindletools-02667589068eec6c44d3cabd40507330f9af77af.tar.bz2 bindletools-02667589068eec6c44d3cabd40507330f9af77af.tar.xz bindletools-02667589068eec6c44d3cabd40507330f9af77af.zip | |
libbindle: setting errno in bindle_urldesc2str()
Diffstat (limited to 'lib/libbindle')
| -rw-r--r-- | lib/libbindle/lurl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libbindle/lurl.c b/lib/libbindle/lurl.c index ce7620a..7ee97b4 100644 --- a/lib/libbindle/lurl.c +++ b/lib/libbindle/lurl.c | |||
| @@ -246,7 +246,10 @@ bindle_urldesc2str( | |||
| 246 | char * url; | 246 | char * url; |
| 247 | 247 | ||
| 248 | if (budp == NULL) | 248 | if (budp == NULL) |
| 249 | { | ||
| 250 | errno = EINVAL; | ||
| 249 | return(NULL); | 251 | return(NULL); |
| 252 | }; | ||
| 250 | 253 | ||
| 251 | // determine if host is an IPv6 address | 254 | // determine if host is an IPv6 address |
| 252 | is_ipv6addr = 0; | 255 | is_ipv6addr = 0; |
