summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ubsec.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2000-06-13 06:11:14 +0000
committerJason Wright <jason@cvs.openbsd.org>2000-06-13 06:11:14 +0000
commita0c6944ed174bd145713632bac85709299f97778 (patch)
treea825594d8754d4ca3e17441f8faa959f59e63b45 /sys/dev/pci/ubsec.c
parentdd8e6169744a0ffcb6f0f49abffbdec0b139ce12 (diff)
Oops: initialize q to avoid using the unitialized value when the queue fills
Diffstat (limited to 'sys/dev/pci/ubsec.c')
-rw-r--r--sys/dev/pci/ubsec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c
index feaa133fca8..bc438b6b71f 100644
--- a/sys/dev/pci/ubsec.c
+++ b/sys/dev/pci/ubsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ubsec.c,v 1.9 2000/06/13 05:15:19 jason Exp $ */
+/* $OpenBSD: ubsec.c,v 1.10 2000/06/13 06:11:13 jason Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -318,7 +318,7 @@ int
ubsec_process(crp)
struct cryptop *crp;
{
- struct ubsec_q *q;
+ struct ubsec_q *q = NULL;
int card, err, i, j, s;
struct ubsec_softc *sc;
struct cryptodesc *crd1, *crd2, *maccrd, *enccrd;