pluto: Added missing return_on in out_sa.
This commit is contained in:
+2
-2
@@ -234,7 +234,7 @@ out_attr(int type
|
|||||||
, val, enum_show(d, val)));
|
, val, enum_show(d, val)));
|
||||||
return TRUE;
|
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.
|
/* Output an SA, as described by a db_sa.
|
||||||
* This has the side-effect of allocating SPIs for us.
|
* This has the side-effect of allocating SPIs for us.
|
||||||
*/
|
*/
|
||||||
@@ -448,7 +448,7 @@ out_sa(pb_stream *outs
|
|||||||
, &st->st_connection->spd
|
, &st->st_connection->spd
|
||||||
, tunnel_mode);
|
, tunnel_mode);
|
||||||
if (*spi_ptr == 0)
|
if (*spi_ptr == 0)
|
||||||
return FALSE;
|
return_on(ret, FALSE);
|
||||||
*spi_generated = TRUE;
|
*spi_generated = TRUE;
|
||||||
}
|
}
|
||||||
if (!out_raw((u_char *)spi_ptr, IPSEC_DOI_SPI_SIZE
|
if (!out_raw((u_char *)spi_ptr, IPSEC_DOI_SPI_SIZE
|
||||||
|
|||||||
Reference in New Issue
Block a user