summaryrefslogtreecommitdiff
path: root/sbin/ipsec/photurisd/handle_spi_needed.c
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1998-05-18 21:25:42 +0000
committerNiels Provos <provos@cvs.openbsd.org>1998-05-18 21:25:42 +0000
commit766b80be3e4beddda92a8835ad57042f38c1d941 (patch)
tree780da7aa6e314d6555e39c2e9bcffa81f3cca7d8 /sbin/ipsec/photurisd/handle_spi_needed.c
parent36901152f2c312784811a6f7594f0612b974f4db (diff)
support kernel notifies for setsockopt/getsockopt interface and fix various
small bugs.
Diffstat (limited to 'sbin/ipsec/photurisd/handle_spi_needed.c')
-rw-r--r--sbin/ipsec/photurisd/handle_spi_needed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ipsec/photurisd/handle_spi_needed.c b/sbin/ipsec/photurisd/handle_spi_needed.c
index 0cdb1946971..3ea5b20a3a2 100644
--- a/sbin/ipsec/photurisd/handle_spi_needed.c
+++ b/sbin/ipsec/photurisd/handle_spi_needed.c
@@ -1,5 +1,5 @@
/*
- * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
+ * Copyright 1997,1998 Niels Provos <provos@physnet.uni-hamburg.de>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -34,7 +34,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: handle_spi_needed.c,v 1.5 1998/03/04 11:43:23 provos Exp $";
+static char rcsid[] = "$Id: handle_spi_needed.c,v 1.6 1998/05/18 21:25:27 provos Exp $";
#endif
#include <stdio.h>
@@ -190,7 +190,7 @@ handle_spi_needed(u_char *packet, int size, char *address,
spi_insert(spi);
schedule_insert(UPDATE, st->olifetime/2, spi->SPI, SPI_SIZE);
#ifdef IPSEC
- kernel_insert_spi(spi);
+ kernel_insert_spi(st, spi);
#endif
return 0;
}