From 5d203f514c204083d1d81a804bd64df2d196197a Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Sat, 26 Mar 2016 01:35:33 +0100 Subject: [PATCH] Sanitize sources. --- src/core/surface/byte_buffer.c | 2 +- src/core/tsi/ssl_transport_security.c | 9 +++++---- src/core/tsi/transport_security.c | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/core/surface/byte_buffer.c b/src/core/surface/byte_buffer.c index a093a37af32..314a67dfcca 100644 --- a/src/core/surface/byte_buffer.c +++ b/src/core/surface/byte_buffer.c @@ -1,6 +1,6 @@ /* * - * Copyright 2015, Google Inc. + * Copyright 2015-2016, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without diff --git a/src/core/tsi/ssl_transport_security.c b/src/core/tsi/ssl_transport_security.c index acf1b0e3c1d..968c0b9be8f 100644 --- a/src/core/tsi/ssl_transport_security.c +++ b/src/core/tsi/ssl_transport_security.c @@ -966,7 +966,8 @@ static tsi_result ssl_handshaker_extract_peer(tsi_handshaker *self, size_t i; tsi_peer_property *new_properties = gpr_malloc(sizeof(*new_properties) * (peer->property_count + 1)); - memset(new_properties, 0, sizeof(*new_properties) * (peer->property_count + 1)); + memset(new_properties, 0, + sizeof(*new_properties) * (peer->property_count + 1)); for (i = 0; i < peer->property_count; i++) { new_properties[i] = peer->properties[i]; } @@ -990,8 +991,7 @@ static tsi_result ssl_handshaker_create_frame_protector( size_t actual_max_output_protected_frame_size = TSI_SSL_MAX_PROTECTED_FRAME_SIZE_UPPER_BOUND; tsi_ssl_handshaker *impl = (tsi_ssl_handshaker *)self; - tsi_ssl_frame_protector *protector_impl = - gpr_malloc(sizeof(*protector_impl)); + tsi_ssl_frame_protector *protector_impl = gpr_malloc(sizeof(*protector_impl)); memset(protector_impl, 0, sizeof(*protector_impl)); if (max_output_protected_frame_size != NULL) { @@ -1411,7 +1411,8 @@ tsi_result tsi_create_ssl_server_handshaker_factory( memset(impl->ssl_contexts, 0, key_cert_pair_count * sizeof(SSL_CTX *)); impl->ssl_context_x509_subject_names = gpr_malloc(key_cert_pair_count * sizeof(tsi_peer)); - memset(impl->ssl_context_x509_subject_names, 0, key_cert_pair_count * sizeof(tsi_peer)); + memset(impl->ssl_context_x509_subject_names, 0, + key_cert_pair_count * sizeof(tsi_peer)); if (impl->ssl_contexts == NULL || impl->ssl_context_x509_subject_names == NULL) { tsi_ssl_handshaker_factory_destroy(&impl->base); diff --git a/src/core/tsi/transport_security.c b/src/core/tsi/transport_security.c index e17749d871a..189f5a0228a 100644 --- a/src/core/tsi/transport_security.c +++ b/src/core/tsi/transport_security.c @@ -1,6 +1,6 @@ /* * - * Copyright 2015, Google Inc. + * Copyright 2015-2016, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without