Skip to content

Commit

Permalink
Problem: create_ipc_wildcard_address can fail
Browse files Browse the repository at this point in the history
check and handle failure
  • Loading branch information
minrk committed Aug 23, 2024
1 parent 2a75ef0 commit a8ab9ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,11 @@ int zmq::make_fdpair (fd_t *r_, fd_t *w_)
goto try_tcpip;
}

create_ipc_wildcard_address (dirname, filename);
rc = create_ipc_wildcard_address (dirname, filename);
if (rc != 0) {
// This may happen if tmpfile creation fails
goto error_closelistener;
}

// Initialise the address structure.
rc = address.resolve (filename.c_str ());
Expand Down

0 comments on commit a8ab9ca

Please sign in to comment.