Commit 9096a504 authored by Ryan Jackson's avatar Ryan Jackson

Linux MFS: more bzero() issues

parent 8c0e5d2c
......@@ -289,7 +289,7 @@ tmcd_sslaccept(int sock, struct sockaddr *addr, socklen_t *addrlen, int ms)
* handshake or not. Clear the buffer to avoid confusing
* the last connection with this new connection.
*/
bzero(nosslbuf, strlen(SPEAKSSL));
memset(nosslbuf, 0, strlen(SPEAKSSL));
if ((cc = read(newsock, nosslbuf, strlen(SPEAKSSL))) <= 0) {
if (cc < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment