intercept_write: remove unused CD_USE_PTRACE code.

It is not possible to end up in intercept_write when CD_USE_PTRACE
is set.
This commit is contained in:
Todd C. Miller
2022-06-21 09:54:41 -06:00
parent 33547702f3
commit e9c2695268

View File

@@ -872,10 +872,6 @@ intercept_write(int fd, struct intercept_closure *closure)
closure->len = 0;
closure->off = 0;
if (ISSET(closure->details->flags, CD_USE_PTRACE)) {
/* Ready for the next policy check from the tracer. */
closure->state = RECV_POLICY_CHECK;
} else {
switch (closure->state) {
case RECV_HELLO_INITIAL:
/* Re-use event for the listener. */
@@ -904,7 +900,6 @@ intercept_write(int fd, struct intercept_closure *closure)
/* Done with this connection. */
intercept_connection_close(closure);
}
}
ret = true;