mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix a bug in keyed sorting due to malloc abuse.
Submitted by: green
This commit is contained in:
parent
47a1b949fb
commit
1909961a9b
1 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,8 @@
|
|||
The author may be reached (Email) at the address mike@gnu.ai.mit.edu,
|
||||
or (US mail) as Mike Haertel c/o Free Software Foundation. */
|
||||
|
||||
/* $FreeBSD$ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* Get isblank from GNU libc. */
|
||||
|
|
@ -1860,6 +1862,7 @@ main (int argc, char **argv)
|
|||
insertkey (key);
|
||||
key = (struct keyfield *)
|
||||
xmalloc (sizeof (struct keyfield));
|
||||
bzero(key, sizeof(*key));
|
||||
key->eword = -1;
|
||||
key->ignore = NULL;
|
||||
key->translate = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue