Fix windows build

The big apps cleanup broke the windows build. This commit
fixes some miscellaneous issues so that it builds again.

Reviewed-by: Andy Polyakov <appro@openssl.org>
This commit is contained in:
Matt Caswell
2015-04-30 09:43:11 +01:00
parent fb45690275
commit a3ed492f58
2 changed files with 7 additions and 7 deletions

View File

@@ -1837,7 +1837,7 @@ X509_NAME *parse_name(const char *cp, long chtype, int canmulti)
n = X509_NAME_new();
if (n == NULL)
return NULL;
work = strdup(cp);
work = OPENSSL_strdup(cp);
if (work == NULL)
goto err;
@@ -1894,12 +1894,12 @@ X509_NAME *parse_name(const char *cp, long chtype, int canmulti)
goto err;
}
free(work);
OPENSSL_free(work);
return n;
err:
X509_NAME_free(n);
free(work);
OPENSSL_free(work);
return NULL;
}