Fix a = vs == error in writev_handler
authorVolker Lendecke <vl@samba.org>
Mon, 15 Jun 2009 05:45:11 +0000 (07:45 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 15 Jun 2009 05:48:48 +0000 (07:48 +0200)
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;
        }