mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 05:21:08 +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
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* 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
|
#ifndef lint
|
||||||
@ -386,8 +386,7 @@ findvar(p)
|
|||||||
if (!v) {
|
if (!v) {
|
||||||
warnx("%s: keyword not found", p);
|
warnx("%s: keyword not found", p);
|
||||||
eval = 1;
|
eval = 1;
|
||||||
}
|
} else if (hp)
|
||||||
if (hp)
|
|
||||||
v->header = hp;
|
v->header = hp;
|
||||||
return (v);
|
return (v);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user