diff options
Diffstat (limited to 'src/asn1Coding.c')
-rw-r--r-- | src/asn1Coding.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/asn1Coding.c b/src/asn1Coding.c index 650e817..d4df593 100644 --- a/src/asn1Coding.c +++ b/src/asn1Coding.c @@ -256,7 +256,12 @@ main (int argc, char *argv[]) asn1_result = asn1_create_element (definitions, value, &structure); } else - asn1_result = asn1_write_value (structure, varName, value, 0); + { + if (strcmp(value, "(NULL)") == 0) + asn1_result = asn1_write_value (structure, varName, NULL, 0); + else + asn1_result = asn1_write_value (structure, varName, value, 0); + } if (asn1_result != ASN1_SUCCESS) { |