projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Quell a (correct) GCC warning in the NO_HTMLHELP case.
[u/mdw/putty]
/
x11fwd.c
diff --git
a/x11fwd.c
b/x11fwd.c
index
5b4f76c
..
1e04f54
100644
(file)
--- 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)
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)
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);
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);
done:
fclose(authfp);
-
memset(buf, 0
, 65537 * 4);
+
smemclr(buf
, 65537 * 4);
sfree(buf);
sfree(ourhostname);
}
sfree(buf);
sfree(ourhostname);
}