]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
travis fixes
authorAlan T. DeKok <aland@freeradius.org>
Tue, 13 Jun 2017 19:50:56 +0000 (15:50 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 13 Jun 2017 19:50:56 +0000 (15:50 -0400)
src/lib/io/track.c
src/lib/io/track.h

index b498f4e45599c249243b323d92e0fb347da86ab8..09e8de2bb620dc6a98751abf4c42f499fa9ea655 100644 (file)
@@ -64,6 +64,7 @@ struct fr_tracking_t {
 /** Create a tracking table for one type of RADIUS packets.
  *
  * @param[in] ctx the talloc ctx
+ * @param[in] allowed_packets the array of packet codes which are tracked in this table.
  * @return
  *     - NULL on error
  *     - fr_tracking_t * on success
@@ -148,9 +149,9 @@ fr_tracking_status_t fr_radius_tracking_entry_insert(fr_tracking_t *ft, uint8_t
 
        (void) talloc_get_type_abort(ft, fr_tracking_t);
 
-       if (!packet[0] || (packet[0] > FR_MAX_PACKET_CODE)) return -1;
+       if (!packet[0] || (packet[0] > FR_MAX_PACKET_CODE)) return FR_TRACKING_ERROR;
 
-       if (!ft->codes[packet[0]]) return -1;
+       if (!ft->codes[packet[0]]) return FR_TRACKING_ERROR;
 
        entry = &ft->codes[packet[0]][packet[1]];
 
index ba2d10859d5d78a55005bc62e93e084257e19135..8ab6b133e6838db92a8d91259259e8d7614b51b2 100644 (file)
@@ -52,6 +52,7 @@ typedef struct fr_tracking_entry_t {
  *  The status of an insert.
  */
 typedef enum fr_tracking_status_t {
+       FR_TRACKING_ERROR = -1,
        FR_TRACKING_UNUSED = 0,
        FR_TRACKING_NEW,
        FR_TRACKING_SAME,