From 106e349a237f4da1580805907d48a4c9370557f9 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Thu, 21 Aug 2014 10:55:46 -0700 Subject: [PATCH] fix wrapper macro usage --- src/ssh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssh.c b/src/ssh.c index 41d5e83..75b4392 100644 --- a/src/ssh.c +++ b/src/ssh.c @@ -203,8 +203,8 @@ static void SshResourceFree(WOLFSSH* ssh, void* heap) ShrinkBuffer(&ssh->inputBuffer, 1); ShrinkBuffer(&ssh->outputBuffer, 1); if (ssh->handshake) { - XMEMSET(ssh->handshake, 0, sizeof(HandshakeInfo)); - XFREE(ssh->handshake, heap, DYNTYPE_HS); + WMEMSET(ssh->handshake, 0, sizeof(HandshakeInfo)); + WFREE(ssh->handshake, heap, DYNTYPE_HS); } if (ssh->rng) { /* FreeRng(ssh->rng); */