diff options
author | jsing <> | 2016-08-15 14:47:41 +0000 |
---|---|---|
committer | jsing <> | 2016-08-15 14:47:41 +0000 |
commit | 3d831cc27493852b5406258a291674d5e72dac97 (patch) | |
tree | 267c6947a9e2db434c4bd1524b7eed3eafa34b06 /src | |
parent | b625f466ed086e94acecb66a8ddd3309cb0e3006 (diff) | |
download | openbsd-3d831cc27493852b5406258a291674d5e72dac97.tar.gz openbsd-3d831cc27493852b5406258a291674d5e72dac97.tar.bz2 openbsd-3d831cc27493852b5406258a291674d5e72dac97.zip |
Fix some style(9) issues.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libtls/tls_conninfo.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/libtls/tls_conninfo.c b/src/lib/libtls/tls_conninfo.c index 7888c919b0..523b2798d3 100644 --- a/src/lib/libtls/tls_conninfo.c +++ b/src/lib/libtls/tls_conninfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_conninfo.c,v 1.8 2016/08/12 15:10:59 jsing Exp $ */ | 1 | /* $OpenBSD: tls_conninfo.c,v 1.9 2016/08/15 14:47:41 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> |
@@ -171,8 +171,10 @@ tls_conninfo_alpn_proto(struct tls *ctx) | |||
171 | } | 171 | } |
172 | 172 | ||
173 | int | 173 | int |
174 | tls_get_conninfo(struct tls *ctx) { | 174 | tls_get_conninfo(struct tls *ctx) |
175 | { | ||
175 | const char * tmp; | 176 | const char * tmp; |
177 | |||
176 | if (ctx->ssl_peer_cert != NULL) { | 178 | if (ctx->ssl_peer_cert != NULL) { |
177 | if (tls_get_peer_cert_hash(ctx, &ctx->conninfo->hash) == -1) | 179 | if (tls_get_peer_cert_hash(ctx, &ctx->conninfo->hash) == -1) |
178 | goto err; | 180 | goto err; |
@@ -205,7 +207,8 @@ err: | |||
205 | } | 207 | } |
206 | 208 | ||
207 | void | 209 | void |
208 | tls_free_conninfo(struct tls_conninfo *conninfo) { | 210 | tls_free_conninfo(struct tls_conninfo *conninfo) |
211 | { | ||
209 | if (conninfo != NULL) { | 212 | if (conninfo != NULL) { |
210 | free(conninfo->alpn); | 213 | free(conninfo->alpn); |
211 | conninfo->alpn = NULL; | 214 | conninfo->alpn = NULL; |