(hx509_parse_name): make compile pre c99
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17276 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -335,6 +335,7 @@ hx509_parse_name(const char *str, hx509_name *name) | |||||||
|     p = str; |     p = str; | ||||||
|  |  | ||||||
|     while (p != NULL && *p != '\0') { |     while (p != NULL && *p != '\0') { | ||||||
|  | 	RelativeDistinguishedName *rdn; | ||||||
| 	const heim_oid *oid; | 	const heim_oid *oid; | ||||||
| 	int last; | 	int last; | ||||||
|  |  | ||||||
| @@ -374,8 +375,7 @@ hx509_parse_name(const char *str, hx509_name *name) | |||||||
| 		n->der_name.u.rdnSequence.len *  | 		n->der_name.u.rdnSequence.len *  | ||||||
| 		sizeof(n->der_name.u.rdnSequence.val[0])); | 		sizeof(n->der_name.u.rdnSequence.val[0])); | ||||||
| 	 | 	 | ||||||
| 	RelativeDistinguishedName *rdn =  | 	rdn = &n->der_name.u.rdnSequence.val[0]; | ||||||
| 	    &n->der_name.u.rdnSequence.val[0]; |  | ||||||
|  |  | ||||||
| 	rdn->val = malloc(sizeof(rdn->val[0])); | 	rdn->val = malloc(sizeof(rdn->val[0])); | ||||||
| 	if (rdn->val == NULL) | 	if (rdn->val == NULL) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand