summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiau <miaukatzemiau@priveasy.de>2011-06-05 12:44:12 (GMT)
committermiau <miaukatzemiau@priveasy.de>2011-06-05 12:44:12 (GMT)
commit736c5adfd9699929a2aee4f57ed4230dbf3fb767 (patch)
tree545833bd39a0e274a7ba70f55f7195ebcefb26d2
parent2ff4666452ee56f4d6c51b7050dbe77456110d2f (diff)
code beauty
-rw-r--r--listener.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/listener.c b/listener.c
index 2fa6666..7aa0b26 100644
--- a/listener.c
+++ b/listener.c
@@ -77,9 +77,9 @@ int main(int argc, char *argv[], char *envp[])
// decode packet & launch handler
buf[numbytes] = '\0';
char *task = buf,
- *cl_argv[3] = {buf, (strlen(task)<numbytes) ? (buf+strlen(task)+1) : NULL, NULL };
+ *cl_argv[3] = {task, (strlen(task)<numbytes) ? (buf+strlen(task)+1) : NULL, NULL };
- if (buf[0] == '/' || strstr(buf, "..")) {
+ if (task[0] == '/' || strstr(task, "..")) {
fprintf(stderr, "payload tried directory traversal\n");
continue;
}
contact: Jan Huwald // Impressum