Use basename of objxref.pl not whole path in generated header.
[oweals/openssl.git] / crypto / asn1 / x_name.c
index b46434c7bd32edf3b725334d1572333b7fdfb276..caa4409feb2743e163ae5b981fcef0710683c6da 100644 (file)
@@ -64,7 +64,7 @@
 #include "asn1_locl.h"
 
 typedef STACK_OF(X509_NAME_ENTRY) STACK_OF_X509_NAME_ENTRY;
-DECLARE_STACK_OF(STACK_OF_X509_NAME_ENTRY);
+DECLARE_STACK_OF(STACK_OF_X509_NAME_ENTRY)
 
 static int x509_name_ex_d2i(ASN1_VALUE **val,
                                const unsigned char **in, long len,
@@ -400,6 +400,7 @@ static int asn1_string_canon(ASN1_STRING *out, ASN1_STRING *in)
                out->type = in->type;
                if (!ASN1_STRING_set(out, in->data, in->length))
                        return 0;
+               return 1;
                }
 
        out->type = V_ASN1_UTF8STRING;