}
} while ((++h)->callback != NULL);
- numeric(c, 500, "Sorry, no such command.");
remove_bytes(c, cmlen);
+ {
+ char error[] = "500 Sorry, no such command.\r\n";
+ if (send(c->sock, error, strlen(error), 0) == -1 && errno == EPIPE)
+ destroy_conn(c);
+ }
}
/*