On 2008/03/08 12:07, Pablo Neira Ayuso <[EMAIL PROTECTED]> wrote:
> >  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466645
> 
> Some alignment issue in ARM? Attached a patch for libnfnetlink-0.0.16. I
> don't have such environment ATM and it would take me a couple of hours
> to setup some virtual ARM environment over qemu to validate the fix.

Hi Albert,

could you please check this patch?

Max


Index: src/libnfnetlink.c
===================================================================
--- src/libnfnetlink.c  (revisi?n: 7211)
+++ src/libnfnetlink.c  (copia de trabajo)
@@ -411,8 +411,7 @@
        assert(ssh);
        assert(nlh);
 
-       struct nfgenmsg *nfg = (struct nfgenmsg *) 
-                                       ((void *)nlh + sizeof(*nlh));
+       struct nfgenmsg *nfg = NLMSG_DATA(nlh);
 
        nlh->nlmsg_len = NLMSG_LENGTH(len+sizeof(*nfg));
        nlh->nlmsg_type = (ssh->subsys_id<<8)|msg_type;




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to