mirror of
https://github.com/urbit/shrub.git
synced 2024-12-20 09:21:42 +03:00
natpmp: oops. missed a sav_errno
This commit is contained in:
parent
81e3a8f927
commit
b25c0b3443
@ -53,6 +53,7 @@ int readNatResponseSynchronously(natpmp_t* natpmp, natpmpresp_t * response)
|
|||||||
FD_SET(natpmp->s, &fds);
|
FD_SET(natpmp->s, &fds);
|
||||||
getnatpmprequesttimeout(natpmp, &timeout);
|
getnatpmprequesttimeout(natpmp, &timeout);
|
||||||
r = select(FD_SETSIZE, &fds, NULL, NULL, &timeout);
|
r = select(FD_SETSIZE, &fds, NULL, NULL, &timeout);
|
||||||
|
sav_errno = errno;
|
||||||
if(r<0) {
|
if(r<0) {
|
||||||
fprintf(stderr, "select(): errno=%d '%s'\n",
|
fprintf(stderr, "select(): errno=%d '%s'\n",
|
||||||
sav_errno, strerror(sav_errno));
|
sav_errno, strerror(sav_errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user