From: tb Date: Sat, 8 Sep 2018 10:31:24 +0000 (+0000) Subject: indent labels X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3e238a8b223d4aaeab8cd5927c9512200a705f14;p=openbsd indent labels --- diff --git a/lib/libcrypto/objects/obj_dat.c b/lib/libcrypto/objects/obj_dat.c index 5b7fac05887..cb6de90b4eb 100644 --- a/lib/libcrypto/objects/obj_dat.c +++ b/lib/libcrypto/objects/obj_dat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: obj_dat.c,v 1.39 2017/01/29 17:49:23 beck Exp $ */ +/* $OpenBSD: obj_dat.c,v 1.40 2018/09/08 10:31:24 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -328,9 +328,9 @@ OBJ_add_object(const ASN1_OBJECT *obj) return (o->nid); -err2: + err2: OBJerror(ERR_R_MALLOC_FAILURE); -err: + err: for (i = ADDED_DATA; i <= ADDED_NID; i++) free(ao[i]); free(o); @@ -632,11 +632,11 @@ OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) } } -out: + out: BN_free(bl); return ret; -err: + err: ret = 0; goto out; } @@ -810,7 +810,7 @@ OBJ_create(const char *oid, const char *sn, const char *ln) goto err; ok = OBJ_add_object(op); -err: + err: ASN1_OBJECT_free(op); free(buf); return (ok); diff --git a/lib/libcrypto/objects/obj_lib.c b/lib/libcrypto/objects/obj_lib.c index 53f3bb9ebe3..5327a0cb983 100644 --- a/lib/libcrypto/objects/obj_lib.c +++ b/lib/libcrypto/objects/obj_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: obj_lib.c,v 1.14 2017/01/29 17:49:23 beck Exp $ */ +/* $OpenBSD: obj_lib.c,v 1.15 2018/09/08 10:31:24 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -109,7 +109,7 @@ OBJ_dup(const ASN1_OBJECT *o) ASN1_OBJECT_FLAG_DYNAMIC_STRINGS | ASN1_OBJECT_FLAG_DYNAMIC_DATA); return (r); -err: + err: OBJerror(ERR_R_MALLOC_FAILURE); free(ln); free(sn);