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

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>
This commit is contained in:
Volker Lendecke 2019-02-07 15:57:06 +01:00 committed by Andrew Bartlett
parent 3a79349779
commit c27afc0983

View File

@ -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;
}