Fix a = vs == error in writev_handler
[ira/wip.git] / lib / async_req / async_sock.c
index cf007e17f191a5cdf7c345a8f9894a9dd05d02f9..f5a0dfde708bd8b14065dcdbc09ad9e642a1fd3a 100644 (file)
@@ -439,7 +439,7 @@ static void writev_handler(struct tevent_context *ev, struct tevent_fd *fde,
        }
 
        written = writev(state->fd, state->iov, state->count);
-       if ((written == -1) && (errno = EINTR)) {
+       if ((written == -1) && (errno == EINTR)) {
                /* retry */
                return;
        }