]> err.no Git - varnish/commit
On platforms with multibyte sa_family and big endian, the compiled
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 8 Sep 2008 14:30:31 +0000 (14:30 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 8 Sep 2008 14:30:31 +0000 (14:30 +0000)
commit014ad9a5b13e3d5704466dba3140ade2e77d082e
tree0c5d432c6b5529f66c73e64f326716c77582f195
parentb049be668a6a18828a93879b1c841b63b16833f8
On platforms with multibyte sa_family and big endian, the compiled
ACLs would not work, as evidenced by #311.

Add a log message for unknown sa_families, and use memmove to extract
the sa_family member of the sockaddr into a suitably sized variable.

Diagnosed by: Mithrandir
Fixes: #311

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3171 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/lib/libvcl/vcc_acl.c