X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=x11fwd.c;h=1e04f542b83dd867761fd260fbd4b2fd851c0068;hb=1c4eac5fa31170c89e0d2601b6b2f13077a9d83c;hp=5b4f76cdcb0e95c0899b9e088dc4eff1dcd2c668;hpb=76a27757e6bbc57eed01315c8346b6ec7848fe84;p=PuTTY.git diff --git a/x11fwd.c b/x11fwd.c index 5b4f76cd..1e04f542 100644 --- a/x11fwd.c +++ b/x11fwd.c @@ -264,10 +264,10 @@ void x11_free_display(struct X11Display *disp) sfree(disp->hostname); sfree(disp->unixsocketpath); if (disp->localauthdata) - memset(disp->localauthdata, 0, disp->localauthdatalen); + smemclr(disp->localauthdata, disp->localauthdatalen); sfree(disp->localauthdata); if (disp->remoteauthdata) - memset(disp->remoteauthdata, 0, disp->remoteauthdatalen); + smemclr(disp->remoteauthdata, disp->remoteauthdatalen); sfree(disp->remoteauthdata); sfree(disp->remoteauthprotoname); sfree(disp->remoteauthdatastring); @@ -487,7 +487,7 @@ void x11_get_auth_from_authfile(struct X11Display *disp, done: fclose(authfp); - memset(buf, 0, 65537 * 4); + smemclr(buf, 65537 * 4); sfree(buf); sfree(ourhostname); }