]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
have different error for "ring buffer full"
authorAlan T. DeKok <aland@freeradius.org>
Wed, 10 Jan 2018 18:37:09 +0000 (13:37 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 10 Jan 2018 18:37:09 +0000 (13:37 -0500)
src/lib/io/control.c

index 2224bde1f54ebecf1c5e8a71d7f241460e33bef3..161ce2bc63b774f96459815524ab66fe2d0ebff8 100644 (file)
@@ -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;
                }
        }