diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2016-08-15 14:47:42 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2016-08-15 14:47:42 +0000 |
commit | 84c467d0f637cc1bef1decb985ce57531247c7b3 (patch) | |
tree | 89a94f0fe6a1a853e201546096e311955a83cb83 /lib | |
parent | 187a6c15f619e81e7a395925004ae5e57f734421 (diff) |
Fix some style(9) issues.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libtls/tls_conninfo.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libtls/tls_conninfo.c b/lib/libtls/tls_conninfo.c index 7888c919b08..523b2798d36 100644 --- a/lib/libtls/tls_conninfo.c +++ b/lib/libtls/tls_conninfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_conninfo.c,v 1.8 2016/08/12 15:10:59 jsing Exp $ */ +/* $OpenBSD: tls_conninfo.c,v 1.9 2016/08/15 14:47:41 jsing Exp $ */ /* * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> * Copyright (c) 2015 Bob Beck <beck@openbsd.org> @@ -171,8 +171,10 @@ tls_conninfo_alpn_proto(struct tls *ctx) } int -tls_get_conninfo(struct tls *ctx) { +tls_get_conninfo(struct tls *ctx) +{ const char * tmp; + if (ctx->ssl_peer_cert != NULL) { if (tls_get_peer_cert_hash(ctx, &ctx->conninfo->hash) == -1) goto err; @@ -205,7 +207,8 @@ err: } void -tls_free_conninfo(struct tls_conninfo *conninfo) { +tls_free_conninfo(struct tls_conninfo *conninfo) +{ if (conninfo != NULL) { free(conninfo->alpn); conninfo->alpn = NULL; |