]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix talloc_list_get_type_abort when get_type_abort is disabled
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 27 Jan 2018 00:01:23 +0000 (17:01 -0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 27 Jan 2018 00:01:23 +0000 (17:01 -0700)
src/include/talloc.h

index 42d15b13c33f8011513ce7252ed536da3686af2e..87ef8710492600fbf53717e2635e4c7cb2f5fc96 100644 (file)
@@ -90,7 +90,7 @@ static inline void *_talloc_list_get_type_abort(void *head, size_t offset, char
        return head;
 }
 #else
-#  define talloc_list_get_type_abort(_head, _type)
+#  define talloc_list_get_type_abort(_head, _type) (_type *)(_head)
 #endif
 
 /*