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)
if (state->sent != -1) {
return;
}
- if (errno != ENOBUFS) {
+ if (state->err != ENOBUFS) {
return;
}