]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
Fix crash on IPv6 packet.
authorEric Leblond <eric@inl.fr>
Mon, 12 Jan 2009 23:57:10 +0000 (00:57 +0100)
committerEric Leblond <eric@inl.fr>
Tue, 13 Jan 2009 07:21:21 +0000 (08:21 +0100)
Incorrect definition of a IPv6 input key handling function was causing
a crash in ulogd.

include/ulogd/ulogd.h

index f55d5f11945430fe349381b0d11a14d2269b7a9e..0f7aabbbeaa77ef5864e8a757eea513bd1a7507f 100644 (file)
@@ -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)
 {