stream-ssl: Only set SSL client session once.
authorBen Pfaff <blp@nicira.com>
Fri, 28 Jan 2011 23:32:57 +0000 (15:32 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 1 Mar 2011 22:50:09 +0000 (14:50 -0800)
commitaae3743bf24cd0e14be726c774a0be49ff0459d7
tree9aa933db7d43f5857ad72f1e3555d1348ac25dd0
parent246f5b5edee9a35d8126a1d15c4f43328cf38570
stream-ssl: Only set SSL client session once.

Attempting to call SSL_set_session() on every trip through the SSL
connection state machine seems like it could cause the session to be
re-set to the cached one even after the server has told us which session
is actually to be used.

In testing, this change didn't make any difference, but it seems seems like
the right thing to do.

Bug #4448.
lib/stream-ssl.c