diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-07-29 12:24:18 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-09-02 19:04:21 +0200 |
commit | 717d60f13f3b542849fd795aaffc9b1b308d3385 (patch) | |
tree | 350c40a11cae9c74909e58546e7c63ea39df9067 /src | |
parent | 1d61bcaabd6bce13a313d343946820f7e3b5217c (diff) | |
download | strongswan-717d60f13f3b542849fd795aaffc9b1b308d3385.tar.bz2 strongswan-717d60f13f3b542849fd795aaffc9b1b308d3385.tar.xz |
pluto: Added missing return_on in out_sa.
Diffstat (limited to 'src')
-rw-r--r-- | src/pluto/spdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pluto/spdb.c b/src/pluto/spdb.c index cdf2cb21b..28c2d2bf1 100644 --- a/src/pluto/spdb.c +++ b/src/pluto/spdb.c @@ -234,7 +234,7 @@ out_attr(int type , val, enum_show(d, val))); return TRUE; } -#define return_on(var, val) do { var=val;goto return_out; } while(0); +#define return_on(var, val) do { var=val;goto return_out; } while(0) /* Output an SA, as described by a db_sa. * This has the side-effect of allocating SPIs for us. */ @@ -448,7 +448,7 @@ out_sa(pb_stream *outs , &st->st_connection->spd , tunnel_mode); if (*spi_ptr == 0) - return FALSE; + return_on(ret, FALSE); *spi_generated = TRUE; } if (!out_raw((u_char *)spi_ptr, IPSEC_DOI_SPI_SIZE |