diff options
author | Volker Lendecke <vl@samba.org> | 2019-02-07 15:57:06 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-02-14 02:18:28 +0100 |
commit | c27afc098398274abaed6dc9bef2019091c1b635 (patch) | |
tree | 2747f0767818d0afd6b059139f1adec47f5984e4 /source3/lib | |
parent | 3a793497796395ffa3efda5807bdb1ca8e09e35b (diff) | |
download | samba-c27afc098398274abaed6dc9bef2019091c1b635.tar.gz |
messages_dgm: Use saved errno value
In this case this is just a cleanup, the value has just been set by
messaging_dgm_sendmsg. But as that already saves errno into a local
variable, use that.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13786
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/messages_dgm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/messages_dgm.c b/source3/lib/messages_dgm.c index 37eefeb0a4a..cb0c17d6c24 100644 --- a/source3/lib/messages_dgm.c +++ b/source3/lib/messages_dgm.c @@ -553,7 +553,7 @@ static void messaging_dgm_out_threaded_job(void *private_data) if (state->sent != -1) { return; } - if (errno != ENOBUFS) { + if (state->err != ENOBUFS) { return; } |