}
strcpy(retbuf, temp);
+ return 1;
}
/*
}
}
- if (c->free_me) {
- destroy_conn(c);
- } else {
+ if (!c->free_me) {
c->recv_buf[cmlen] = schar;
#if !WANT_NONROOT
if (h->do_setuid) {
}
} 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);
+ }
}
/*