diff options
author | 2002-06-22 00:03:35 +0000 | |
---|---|---|
committer | 2002-06-22 00:03:35 +0000 | |
commit | 18f1f7e082d0e879e4054d1f1c8c0d3ce64e6987 (patch) | |
tree | cf07b5a50cc86680770d50db019e9a4697e40cda | |
parent | make pserver code IPv6 ready. markus ok (diff) | |
download | wireguard-openbsd-18f1f7e082d0e879e4054d1f1c8c0d3ce64e6987.tar.xz wireguard-openbsd-18f1f7e082d0e879e4054d1f1c8c0d3ce64e6987.zip |
replace argument only if it is not copied in the kernel already (has length
> 0)
-rw-r--r-- | bin/systrace/systrace.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c index f86f952ce48..06dbfba3eee 100644 --- a/bin/systrace/systrace.c +++ b/bin/systrace/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.19 2002/06/21 15:26:06 provos Exp $ */ +/* $OpenBSD: systrace.c,v 1.20 2002/06/22 00:03:35 provos Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -105,8 +105,9 @@ trans_cb(int fd, pid_t pid, int policynr, p = output + strlen(output); size = sizeof(output) - strlen(output); - intercept_replace_add(&repl, tl->off, - tl->trans_data, tl->trans_size); + if (tl->trans_size) + intercept_replace_add(&repl, tl->off, + tl->trans_data, tl->trans_size); } action = filter_evaluate(tls, pflq, &ipid->uflags); |