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
This commit is contained in:
Robert Watson 2002-11-08 20:49:50 +00:00
parent 845ee63965
commit 6d7bdc8def

View file

@ -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;