natpmp: oops. missed a sav_errno

This commit is contained in:
Elliot Glaysher 2020-08-17 13:08:22 -04:00
parent 81e3a8f927
commit b25c0b3443

View File

@ -53,6 +53,7 @@ int readNatResponseSynchronously(natpmp_t* natpmp, natpmpresp_t * response)
FD_SET(natpmp->s, &fds);
getnatpmprequesttimeout(natpmp, &timeout);
r = select(FD_SETSIZE, &fds, NULL, NULL, &timeout);
sav_errno = errno;
if(r<0) {
fprintf(stderr, "select(): errno=%d '%s'\n",
sav_errno, strerror(sav_errno));