diff options
author | William Pitcock <nenolod@dereferenced.org> | 2014-01-24 10:17:01 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2014-01-24 10:17:01 +0000 |
commit | eeccca281ddf09a5e6c514c7151915384d141a84 (patch) | |
tree | bf8d52b768ca434d63802fcf0c67578e5377f1a0 /main/ipfw-grsec/ipfw-kmod-dereffix.patch | |
parent | 4e6dc966c123cbbe50acc9353eac554e4ebec4fa (diff) | |
download | aports-eeccca281ddf09a5e6c514c7151915384d141a84.tar.bz2 aports-eeccca281ddf09a5e6c514c7151915384d141a84.tar.xz |
main/ipfw-grsec: new aport
Diffstat (limited to 'main/ipfw-grsec/ipfw-kmod-dereffix.patch')
-rw-r--r-- | main/ipfw-grsec/ipfw-kmod-dereffix.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/main/ipfw-grsec/ipfw-kmod-dereffix.patch b/main/ipfw-grsec/ipfw-kmod-dereffix.patch new file mode 100644 index 0000000000..168fc70e18 --- /dev/null +++ b/main/ipfw-grsec/ipfw-kmod-dereffix.patch @@ -0,0 +1,22 @@ +--- ipfw3-2012.orig/sys/netinet/ipfw/ip_dummynet.c ++++ ipfw3-2012/sys/netinet/ipfw/ip_dummynet.c +@@ -635,7 +635,7 @@ + fs->sched->fp->free_fsk(fs); + fs->sched = NULL; + if (flags & DN_DELETE_FS) { +- bzero(fs, sizeof(fs)); /* safety */ ++ bzero(fs, sizeof(*fs)); /* safety */ + free(fs, M_DUMMYNET); + dn_cfg.fsk_count--; + } else { +--- ipfw3-2012.orig/kipfw/ipfw2_mod.c ++++ ipfw3-2012/kipfw/ipfw2_mod.c +@@ -218,7 +218,7 @@ + struct thread t; + int ret = EINVAL; + +- memset(s, 0, sizeof(s)); ++ memset(s, 0, sizeof(*s)); + s->sopt_name = cmd; + s->sopt_dir = dir; + s->sopt_valsize = len; |