mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 13:05:18 +01:00
Fix seg fault when invalid keywords are used.
PR: bin/4253 Submitted by: Jesse Rosenstock <jmr@ugcs.caltech.edu>
This commit is contained in:
parent
312ecb009a
commit
e27525d9f8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28051
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: keyword.c,v 1.14 1997/03/04 00:33:56 ache Exp $
|
||||
* $Id: keyword.c,v 1.15 1997/04/29 05:26:04 jkh Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -386,8 +386,7 @@ findvar(p)
|
||||
if (!v) {
|
||||
warnx("%s: keyword not found", p);
|
||||
eval = 1;
|
||||
}
|
||||
if (hp)
|
||||
} else if (hp)
|
||||
v->header = hp;
|
||||
return (v);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user