diff options
| author | deraadt <> | 2014-04-21 16:08:08 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-04-21 16:08:08 +0000 |
| commit | f7f50fee471be5d0d88214715a1bc24df690120c (patch) | |
| tree | ad97c976f5c1f0b1197a38fdc26c3f1f302b0965 /src/lib/libcrypto/x509v3/v3_utl.c | |
| parent | 0b9a88e673f6a695e45baf6cc0fecf3405a3d7aa (diff) | |
| download | openbsd-f7f50fee471be5d0d88214715a1bc24df690120c.tar.gz openbsd-f7f50fee471be5d0d88214715a1bc24df690120c.tar.bz2 openbsd-f7f50fee471be5d0d88214715a1bc24df690120c.zip | |
no need for malloc casts
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_utl.c')
| -rw-r--r-- | src/lib/libcrypto/x509v3/v3_utl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_utl.c b/src/lib/libcrypto/x509v3/v3_utl.c index d938a175ed..f85c1ef82e 100644 --- a/src/lib/libcrypto/x509v3/v3_utl.c +++ b/src/lib/libcrypto/x509v3/v3_utl.c | |||
| @@ -85,7 +85,7 @@ int X509V3_add_value(const char *name, const char *value, | |||
| 85 | char *tname = NULL, *tvalue = NULL; | 85 | char *tname = NULL, *tvalue = NULL; |
| 86 | if(name && !(tname = BUF_strdup(name))) goto err; | 86 | if(name && !(tname = BUF_strdup(name))) goto err; |
| 87 | if(value && !(tvalue = BUF_strdup(value))) goto err; | 87 | if(value && !(tvalue = BUF_strdup(value))) goto err; |
| 88 | if(!(vtmp = (CONF_VALUE *)malloc(sizeof(CONF_VALUE)))) goto err; | 88 | if(!(vtmp = malloc(sizeof(CONF_VALUE)))) goto err; |
| 89 | if(!*extlist && !(*extlist = sk_CONF_VALUE_new_null())) goto err; | 89 | if(!*extlist && !(*extlist = sk_CONF_VALUE_new_null())) goto err; |
| 90 | vtmp->section = NULL; | 90 | vtmp->section = NULL; |
| 91 | vtmp->name = tname; | 91 | vtmp->name = tname; |
