(krb5_mk_priv): abort if ASN1_MALLOC_ENCODE failes to produce the
matching lenghts. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16680 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		| @@ -129,9 +129,11 @@ krb5_mk_priv(krb5_context context, | ||||
|  | ||||
|  | ||||
|     ASN1_MALLOC_ENCODE(KRB_PRIV, buf, buf_size, &s, &len, ret); | ||||
|  | ||||
|     if(ret) | ||||
|     if (ret) | ||||
| 	goto fail; | ||||
|     if (buf_size != len) | ||||
| 	krb5_abortx(context, "internal error in ASN.1 encoder"); | ||||
|  | ||||
|     krb5_data_free (&s.enc_part.cipher); | ||||
|  | ||||
|     ret = krb5_data_copy(outbuf, buf + buf_size - len, len); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Love Hörnquist Åstrand
					Love Hörnquist Åstrand