in sniffer, free handshake resources in the right order

This commit is contained in:
John Safranek
2015-04-17 13:42:08 -07:00
parent 7536cec0d6
commit 99a9d221bc

View File

@@ -1780,7 +1780,12 @@ static int ProcessFinished(const byte* input, int size, int* sslBytes,
} }
} }
FreeHandshakeResources(ssl); /* If receiving a finished message from one side, free the resources
* from the other side's tracker. */
if (session->flags.side == WOLFSSL_SERVER_END)
FreeHandshakeResources(session->sslClient);
else
FreeHandshakeResources(session->sslServer);
return ret; return ret;
} }