version 1.9, 2009/07/20 14:37:51 |
version 1.10, 2009/07/26 12:58:44 |
|
|
} |
} |
|
|
void |
void |
|
server_write_error(struct client *c, const char *msg) |
|
{ |
|
struct msg_print_data printdata; |
|
|
|
strlcpy(printdata.msg, msg, sizeof printdata.msg); |
|
server_write_client(c, MSG_ERROR, &printdata, sizeof printdata); |
|
} |
|
|
|
void |
server_write_client( |
server_write_client( |
struct client *c, enum hdrtype type, const void *buf, size_t len) |
struct client *c, enum hdrtype type, const void *buf, size_t len) |
{ |
{ |
|
|
password_failures++; |
password_failures++; |
for (i = 0; i < ARRAY_LENGTH(&clients); i++) { |
for (i = 0; i < ARRAY_LENGTH(&clients); i++) { |
c = ARRAY_ITEM(&clients, i); |
c = ARRAY_ITEM(&clients, i); |
if (c == NULL || c->prompt_buffer == NULL) |
if (c == NULL || c->prompt_buffer == NULL) |
continue; |
continue; |
|
|
*c->prompt_buffer = '\0'; |
*c->prompt_buffer = '\0'; |