aboutsummaryrefslogtreecommitdiffstats
path: root/g10/sign.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/sign.c')
-rw-r--r--g10/sign.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/g10/sign.c b/g10/sign.c
index b3bda581c..2ba30f09c 100644
--- a/g10/sign.c
+++ b/g10/sign.c
@@ -125,10 +125,13 @@ mk_notation_policy_etc (ctrl_t ctrl, PKT_signature *sig,
xfree (item->altvalue);
item->altvalue = NULL;
}
- /* Restore the original nd and release ndmanu. */
- nd = ndmanu;
- ndmanu->next = NULL;
- free_notation (ndmanu);
+ if (with_manu)
+ {
+ /* Restore the original nd and release ndmanu. */
+ nd = ndmanu;
+ ndmanu->next = NULL;
+ free_notation (ndmanu);
+ }
}
/* Set policy URL. */