summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-02-07 15:57:06 +0100
committerKarolin Seeger <kseeger@samba.org>2019-03-05 07:39:27 +0000
commit069dd7189c10ba5ffdbe5f70f91a11ba4e55981f (patch)
treee966e7d11a0d736f96f4823aeffa13348d725aba
parent1cb278ddaea03c946ed9f32665517ffaec833823 (diff)
downloadsamba-069dd7189c10ba5ffdbe5f70f91a11ba4e55981f.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> (cherry picked from commit c27afc098398274abaed6dc9bef2019091c1b635)
-rw-r--r--source3/lib/messages_dgm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/messages_dgm.c b/source3/lib/messages_dgm.c
index b9cddc274c2..91b9d65b7a4 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;
}