summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-04-12 01:16:02 +0000
committerchristos <christos@NetBSD.org>2006-04-12 01:16:02 +0000
commite445d1fecf063d166b76c4268069a2b33c5adfb5 (patch)
treed0c704a0b113e10fc6288b1f40bfea27417b1741 /sys
parent468df87a270a7df5639d5834a5cc57cf4b00d7f9 (diff)
Coverity CID 992: Avoid NULL deref.
Diffstat (limited to 'sys')
-rw-r--r--sys/netsmb/smb_iod.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netsmb/smb_iod.c b/sys/netsmb/smb_iod.c
index 25283aeffad..3950c7b2866 100644
--- a/sys/netsmb/smb_iod.c
+++ b/sys/netsmb/smb_iod.c
@@ -1,4 +1,4 @@
-/* $NetBSD: smb_iod.c,v 1.25 2005/12/24 20:45:09 perry Exp $ */
+/* $NetBSD: smb_iod.c,v 1.26 2006/04/12 01:16:02 christos Exp $ */
/*
* Copyright (c) 2000-2001 Boris Popov
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smb_iod.c,v 1.25 2005/12/24 20:45:09 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smb_iod.c,v 1.26 2006/04/12 01:16:02 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -290,7 +290,7 @@ smb_iod_sendrq(struct smbiod *iod, struct smb_rq *rqp)
/*
* Check for fatal errors
*/
- if (SMB_TRAN_FATAL(vcp, error)) {
+ if (vcp && SMB_TRAN_FATAL(vcp, error)) {
/*
* No further attempts should be made
*/