From b7de717bf3044a1bb201da4de81efeb380de5627 Mon Sep 17 00:00:00 2001 From: Igor Pylypiv <igor.pylypiv@gmail.com> Date: Thu, 30 Mar 2017 23:06:16 -0700 Subject: [PATCH] Fix duplicated NULL pointer check --- src/core/tsi/transport_security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tsi/transport_security.c b/src/core/tsi/transport_security.c index a3e42e87ec..67ebe1b1f3 100644 --- a/src/core/tsi/transport_security.c +++ b/src/core/tsi/transport_security.c @@ -101,7 +101,7 @@ tsi_result tsi_frame_protector_protect_flush( tsi_frame_protector *self, unsigned char *protected_output_frames, size_t *protected_output_frames_size, size_t *still_pending_size) { if (self == NULL || protected_output_frames == NULL || - protected_output_frames == NULL || still_pending_size == NULL) { + protected_output_frames_size == NULL || still_pending_size == NULL) { return TSI_INVALID_ARGUMENT; } return self->vtable->protect_flush(self, protected_output_frames, -- GitLab