diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-11-08 20:49:50 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-11-08 20:49:50 +0000 |
commit | a563c04c4a2b52af408f406e29c3a69842a3bd1b (patch) | |
tree | 1e5c1ff3e504a9e5275a5d80475dedf10cb82dca /sys/kern/imgact_elf.c | |
parent | ba93b1c02aa6d0ce2d8a2ec3545e19876cf6ec1b (diff) | |
download | FreeBSD-src-a563c04c4a2b52af408f406e29c3a69842a3bd1b.zip FreeBSD-src-a563c04c4a2b52af408f406e29c3a69842a3bd1b.tar.gz |
Assign value of NULL to imgp->execlabel when imgp is initialized
in the ELF code. Missed in earlier merge from the MAC tree.
Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/kern/imgact_elf.c')
-rw-r--r-- | sys/kern/imgact_elf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c index ff15a46..27bcfbe 100644 --- a/sys/kern/imgact_elf.c +++ b/sys/kern/imgact_elf.c @@ -520,6 +520,7 @@ __elfN(load_file)(struct proc *p, const char *file, u_long *addr, imgp->firstpage = NULL; imgp->image_header = (char *)kmem_alloc_wait(exec_map, PAGE_SIZE); imgp->object = NULL; + imgp->execlabel = NULL; if (imgp->image_header == NULL) { nd->ni_vp = NULL; |