aboutsummaryrefslogtreecommitdiff
path: root/sys/netipsec/key_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netipsec/key_debug.c')
-rw-r--r--sys/netipsec/key_debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netipsec/key_debug.c b/sys/netipsec/key_debug.c
index 4f03d78d434f..58f2d2b614c5 100644
--- a/sys/netipsec/key_debug.c
+++ b/sys/netipsec/key_debug.c
@@ -808,12 +808,15 @@ kdebug_secreplay(struct secreplay *rpl)
{
int len, l;
+ SECREPLAY_LOCK(rpl);
+
IPSEC_ASSERT(rpl != NULL, ("null rpl"));
printf(" secreplay{ count=%lu bitmap_size=%u wsize=%u last=%lu",
rpl->count, rpl->bitmap_size, rpl->wsize, rpl->last);
if (rpl->bitmap == NULL) {
printf(" }\n");
+ SECREPLAY_UNLOCK(rpl);
return;
}
@@ -823,6 +826,7 @@ kdebug_secreplay(struct secreplay *rpl)
printf("%u", (((rpl->bitmap)[len] >> l) & 1) ? 1 : 0);
}
printf(" }\n");
+ SECREPLAY_UNLOCK(rpl);
}
#endif /* IPSEC_DEBUG */