1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3-prefork: Directly fail if tevent_req_is_unix_error() fails.

Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>

Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Dec 21 15:38:19 CET 2012 on sn-devel-104
This commit is contained in:
Andreas Schneider 2012-12-13 14:18:02 +01:00 committed by Günther Deschner
parent 93d2847bf4
commit b1548fd944

View File

@ -666,7 +666,9 @@ int prefork_listen_recv(struct tevent_req *req,
if (state->error) {
ret = state->error;
} else {
tevent_req_is_unix_error(req, &ret);
if (!tevent_req_is_unix_error(req, &ret)) {
ret = 0;
}
}
if (ret) {