Coverity CID 1117: Prevent NULL deref.

This commit is contained in:
christos 2006-04-14 23:45:43 +00:00
parent 22c81cce82
commit 57919c6b44
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: llc_input.c,v 1.17 2006/04/14 23:43:07 christos Exp $ */
/* $NetBSD: llc_input.c,v 1.18 2006/04/14 23:45:43 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: llc_input.c,v 1.17 2006/04/14 23:43:07 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: llc_input.c,v 1.18 2006/04/14 23:45:43 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -268,7 +268,8 @@ llcintr()
frame->llc_window = linkp->llcl_window;
else frame->llc_window = sapinfo->si_window;
frame->llc_fid = 9; /* XXX */
frame->llc_class = sapinfo->si_class;
frame->llc_class =
sapinfo ? sapinfo->si_class : 1
frame->llc_ssap = frame->llc_dsap;
} else {
frame->llc_window = 0;