From: Alan T. DeKok Date: Wed, 10 Jan 2018 18:37:09 +0000 (-0500) Subject: have different error for "ring buffer full" X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4328ab045497229d67dd074e94243a911b1fbefc;p=thirdparty%2Ffreeradius-server.git have different error for "ring buffer full" --- diff --git a/src/lib/io/control.c b/src/lib/io/control.c index 2224bde1f54..161ce2bc63b 100644 --- a/src/lib/io/control.c +++ b/src/lib/io/control.c @@ -258,6 +258,7 @@ static fr_control_message_t *fr_control_message_alloc(fr_control_t *c, fr_ring_b * @param[in] data the data to write to the control plane * @param[in] data_size the size of the data to write to the control plane. * @return + * - -2 on ring buffer full * - <0 on error * - 0 on success */ @@ -280,7 +281,7 @@ int fr_control_message_push(fr_control_t *c, fr_ring_buffer_t *rb, uint32_t id, m = fr_control_message_alloc(c, rb, id, data, data_size); if (!m) { fr_strerror_printf("Failed allocationg after GC"); - return -1; + return -2; } }