Skip to content

Commit

Permalink
stream-ssl: Fix memory leak on error path.
Browse files Browse the repository at this point in the history
The commit that this fixes is from 2009.

Reported-by: Kai-Wei Fan <fank@vmware.com>
Fixes: 9467fe6 ("Add SSL support to "stream" library and OVSDB.")
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Andy Zhou <azhou@ovn.org>
  • Loading branch information
blp committed Oct 17, 2016
1 parent a3ce77d commit acfa1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stream-ssl.c
Expand Up @@ -670,7 +670,7 @@ ssl_send(struct stream *stream, const void *buffer, size_t n)
case EAGAIN:
return n;
default:
sslv->txbuf = NULL;
ssl_clear_txbuf(sslv);
return -error;
}
}
Expand Down

0 comments on commit acfa1a2

Please sign in to comment.