diff options
author | Paul Moore <pmoore@redhat.com> | 2013-10-18 07:57:07 -0400 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2013-10-18 11:30:08 -0400 |
commit | c659c39814e65e086a66eeeafbea4b6980b78680 (patch) | |
tree | 064feff3ac1f80ce18905a2de901c1115391ddf7 | |
parent | fee3e3f7fc1a5a081a8b7b62b2a904d73dcb0628 (diff) | |
download | libseccomp-c659c39814e65e086a66eeeafbea4b6980b78680.tar.gz |
db: fix a realloc() problem in db_col_merge()
Another stupid mistake of mine; we weren't correctly reassigning
a pointer after a successful realloc() in db_col_merge().
Signed-off-by: Paul Moore <pmoore@redhat.com>
-rw-r--r-- | src/db.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -492,6 +492,7 @@ int db_col_merge(struct db_filter_col *col_dst, struct db_filter_col *col_src) (col_dst->filter_cnt + col_src->filter_cnt)); if (dbs == NULL) return -ENOMEM; + col_dst->filters = dbs; /* transfer the architecture filters */ for (iter_a = col_dst->filter_cnt, iter_b = 0; |