third_party/heimdal: Don't refer to errno when the pthread library fails
[metze/samba/wip.git] / third_party / heimdal / lib / ipc / common.c
index cfbe4b5b96fd22ad0f50e43959a08e6c71d95cdd..aa26c1a73bd800775e92885af523818905f35eb8 100644 (file)
@@ -150,7 +150,7 @@ heim_ipc_semaphore_wait(heim_isemaphore s, time_t t)
        }
        if (ret) {
            HEIMDAL_MUTEX_unlock(&s->mutex);
-           return errno;
+           return ret;
        }
     }
     HEIMDAL_MUTEX_unlock(&s->mutex);