diff options
author | Andreas Schneider <asn@samba.org> | 2012-12-13 14:18:02 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2012-12-21 15:38:17 +0100 |
commit | b1548fd944578d845c5aaf88a528cf5a60df0c62 (patch) | |
tree | fb161b67303ccb5ca9439259c1debb538a1d3b7a /source3/lib | |
parent | 93d2847bf4cc5d2fcdc95677d1cb1c515adc621c (diff) | |
download | samba-b1548fd944578d845c5aaf88a528cf5a60df0c62.tar.gz samba-b1548fd944578d845c5aaf88a528cf5a60df0c62.tar.bz2 samba-b1548fd944578d845c5aaf88a528cf5a60df0c62.zip |
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
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/server_prefork.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/server_prefork.c b/source3/lib/server_prefork.c index 3d35e1c6ca..49d1778085 100644 --- a/source3/lib/server_prefork.c +++ b/source3/lib/server_prefork.c @@ -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) { |