Use the proper verify_request function instead of talloc_get_type_abort
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 17 Jun 2014 10:29:44 +0000 (11:29 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 17 Jun 2014 10:29:44 +0000 (11:29 +0100)
src/include/radiusd.h

index 27e9d56..a6bf8ef 100644 (file)
@@ -189,7 +189,7 @@ typedef             int (*RAD_REQUEST_FUNP)(REQUEST *);
 #define REQUEST_MAX_REGEX (8)
 
 #if defined(WITH_VERIFY_PTR)
-#  define VERIFY_REQUEST(_x) (void) talloc_get_type_abort(_x, REQUEST)
+#  define VERIFY_REQUEST(_x) verify_request(_x)
 #else
 /*
  *  Even if were building without WITH_VERIFY_PTR