mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
mac_veriexec ensure label fields are initialized
Obtained from: bkumara@juniper.net
This commit is contained in:
parent
b8f51b8c54
commit
6eabf4ce35
1 changed files with 2 additions and 4 deletions
|
|
@ -732,14 +732,12 @@ search:
|
|||
ip->ops = fpops;
|
||||
ip->fileid = fileid;
|
||||
ip->gen = gen;
|
||||
ip->label = NULL;
|
||||
ip->labellen = 0;
|
||||
memcpy(ip->fingerprint, fingerprint, fpops->digest_len);
|
||||
if (flags & VERIEXEC_LABEL)
|
||||
ip->labellen = mac_veriexec_init_label(&ip->label,
|
||||
ip->labellen, label, labellen);
|
||||
else {
|
||||
ip->label = NULL;
|
||||
ip->labellen = 0;
|
||||
}
|
||||
|
||||
VERIEXEC_DEBUG(3, ("add file %ju.%lu (files=%d)\n",
|
||||
(uintmax_t)ip->fileid,
|
||||
|
|
|
|||
Loading…
Reference in a new issue