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 authored and bluca committed Aug 23, 2024
1 parent 5f408ba commit 0ed7a08
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 0ed7a08

Please sign in to comment.