Skip to content

Commit

Permalink
make safer
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Nov 29, 2023
1 parent 727b988 commit ba8db3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: nanonext
Type: Package
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
Version: 0.10.4.9018
Version: 0.10.4.9019
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
a socket library implementing 'Scalability Protocols', a reliable,
high-performance standard for common communications patterns including
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nanonext 0.10.4.9018
# nanonext 0.10.4.9019

*This is a major stability release bundling the 'libnng' v1.6.0 source code.*

Expand Down
4 changes: 2 additions & 2 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ SEXP rnng_ncurl(SEXP http, SEXP convert, SEXP follow, SEXP method, SEXP headers,

if (relo && LOGICAL(follow)[0]) {
const char *location = nng_http_res_get_header(res, "Location");
if (location == NULL) goto resume;
nng_url_free(url);
xc = nng_url_parse(&url, location);
if (xc)
goto resume;
if (xc) goto resume;
nng_http_res_free(res);
nng_http_req_free(req);
nng_http_client_free(client);
Expand Down

0 comments on commit ba8db3c

Please sign in to comment.