messages_dgm: Use saved errno value
authorVolker Lendecke <vl@samba.org>
Thu, 7 Feb 2019 14:57:06 +0000 (15:57 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 4 Mar 2019 10:37:53 +0000 (10:37 +0000)
commit6bea930499819988be5a0ba901c05b124091b54f
tree17e0bc180d6a79aa9809940b0c9e4ad350fdfb26
parent6a38b9917b2c25bb557687df2c24618273b6f7f5
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)
source3/lib/messages_dgm.c