From: Eric Leblond Date: Mon, 12 Jan 2009 23:57:10 +0000 (+0100) Subject: Fix crash on IPv6 packet. X-Git-Tag: ulogd-2.0.0beta3~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de384e6f16d67eb21c555793368be4cb47fced98;p=thirdparty%2Fulogd2.git Fix crash on IPv6 packet. Incorrect definition of a IPv6 input key handling function was causing a crash in ulogd. --- diff --git a/include/ulogd/ulogd.h b/include/ulogd/ulogd.h index f55d5f1..0f7aabb 100644 --- a/include/ulogd/ulogd.h +++ b/include/ulogd/ulogd.h @@ -178,7 +178,10 @@ static inline u_int32_t ikey_get_u32(struct ulogd_key *key) return key->u.source->u.value.ui32; } -#define ikey_get_u128 ikey_get_ptr +static inline void *ikey_get_u128(struct ulogd_key *key) +{ + return &key->u.source->u.value.ui128; +} static inline void *ikey_get_ptr(struct ulogd_key *key) {