Skip to content
Snippets Groups Projects
Commit b7de717b authored by Igor Pylypiv's avatar Igor Pylypiv
Browse files

Fix duplicated NULL pointer check

parent 55fd6638
Branches
Tags
No related merge requests found
...@@ -101,7 +101,7 @@ tsi_result tsi_frame_protector_protect_flush( ...@@ -101,7 +101,7 @@ tsi_result tsi_frame_protector_protect_flush(
tsi_frame_protector *self, unsigned char *protected_output_frames, tsi_frame_protector *self, unsigned char *protected_output_frames,
size_t *protected_output_frames_size, size_t *still_pending_size) { size_t *protected_output_frames_size, size_t *still_pending_size) {
if (self == NULL || protected_output_frames == NULL || 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 TSI_INVALID_ARGUMENT;
} }
return self->vtable->protect_flush(self, protected_output_frames, return self->vtable->protect_flush(self, protected_output_frames,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment