From 80ad54c9895f9953b06c6f78e52ecf6493aa21d6 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Wed, 15 Feb 2017 23:13:06 +0200 Subject: [PATCH] 8456 libipsecutil: variable might be clobbered by longjmp Reviewed by: Gary Mills Reviewed by: Igor Kozhukhov Approved by: Dan McDonald --- usr/src/lib/libipsecutil/common/ipsec_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/src/lib/libipsecutil/common/ipsec_util.c b/usr/src/lib/libipsecutil/common/ipsec_util.c index e5f8f16d81..ad9410b8b4 100644 --- a/usr/src/lib/libipsecutil/common/ipsec_util.c +++ b/usr/src/lib/libipsecutil/common/ipsec_util.c @@ -696,9 +696,9 @@ do_interactive(FILE *infile, char *configfile, char *promptstring, char *my_fmri, parse_cmdln_fn parseit, CplMatchFn *match_fn) { char ibuf[IBUF_SIZE], holder[IBUF_SIZE]; - char *hptr, **thisargv, *ebuf; + char *volatile hptr, **thisargv, *ebuf; int thisargc; - boolean_t continue_in_progress = B_FALSE; + volatile boolean_t continue_in_progress = B_FALSE; char *s; (void) setjmp(env); @@ -2296,7 +2296,7 @@ ipsec_convert_sl_to_sens(int doi, bslabel_t *sl, sadb_sens_t *sens) */ void print_sens(FILE *file, char *prefix, const struct sadb_sens *sens, - boolean_t ignore_nss) + boolean_t ignore_nss) { char *plabel; char *hlabel; -- 2.11.4.GIT