Changeset 11 for trunk/src/sh_forward.c
- Timestamp:
- Jan 2, 2006, 12:03:25 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_forward.c
r3 r11 249 249 else 250 250 { 251 memset (name_2, 0, SH_MINIBUF+1);252 251 first = name; 253 252 while (i < SH_MINIBUF && *first != '.' && *first != '\0') … … 256 255 ++first; ++i; 257 256 } 258 name_2[ SH_MINIBUF] = '\0';257 name_2[i] = '\0'; 259 258 } 260 259 } … … 2071 2070 2072 2071 2073 2072 static char zap_challenge[SH_CHALLENGE_SIZE] = { 0 }; 2073 2074 2074 void sh_forward_do_free (sh_conn_t * conn) 2075 2075 { … … 2101 2101 conn->fd = -1; 2102 2102 } 2103 mem set(conn->challenge, '\0', SH_CHALLENGE_SIZE);2103 memcpy(conn->challenge, zap_challenge, SH_CHALLENGE_SIZE); 2104 2104 conn->state = CONN_FREE; 2105 2105 conn->headcount = 0; … … 2118 2118 conn->FileLength = 0; 2119 2119 conn->FileSent = 0; 2120 memset(conn->FileType, '\0', 5); 2120 conn->FileType[0] = '\0'; 2121 conn->FileType[1] = '\0'; 2122 conn->FileType[2] = '\0'; 2123 conn->FileType[3] = '\0'; 2124 conn->FileType[4] = '\0'; 2121 2125 2122 2126 --server_status.conn_open;
Note:
See TracChangeset
for help on using the changeset viewer.