Skip to content

Commit

Permalink
stream-ssl: Fix broken build.
Browse files Browse the repository at this point in the history
In all the churn around ofpbuf and dp_packet, this code seems to have been
overlooked.  This fixes the problem.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
  • Loading branch information
blp committed Mar 4, 2015
1 parent 6fd6ed7 commit 560d3df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/stream-ssl.c
Expand Up @@ -634,15 +634,14 @@ ssl_do_tx(struct stream *stream)

for (;;) {
int old_state = SSL_get_state(sslv->ssl);
int ret = SSL_write(sslv->ssl,
ofpbuf_data(sslv->txbuf), ofpbuf_size(sslv->txbuf));
int ret = SSL_write(sslv->ssl, sslv->txbuf->data, sslv->txbuf->size);
if (old_state != SSL_get_state(sslv->ssl)) {
sslv->rx_want = SSL_NOTHING;
}
sslv->tx_want = SSL_NOTHING;
if (ret > 0) {
ofpbuf_pull(sslv->txbuf, ret);
if (ofpbuf_size(sslv->txbuf) == 0) {
if (sslv->txbuf->size == 0) {
return 0;
}
} else {
Expand Down

0 comments on commit 560d3df

Please sign in to comment.