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