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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user