aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-02-22 19:53:12 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-02-22 19:53:12 +0100
commit0e02e7bcd54951987c5f9a91b234405882c7b88a (patch)
tree968dcf64bea6f85fda592672c20e314428e942f0
parenta9e24d130d4f67417d9943b09764ad7b56a3ea83 (diff)
code formatting
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--src/pkt.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9b8e378..ca7e14e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -123,7 +123,6 @@ test-valgrind:
script:
- ls -alhR .
- deploy/gcc/bin/ptunnel-ng --help
- - deploy/gcc-sanitizer-asserts/bin/ptunnel-ng --help
- PTUNNEL_BIN="deploy/gcc/bin/ptunnel-ng" test/integration_test.sh
- mv /tmp/ptunnel-client.log ptunnel-client-valgrind.log
- mv /tmp/ptunnel-server.log ptunnel-server-valgrind.log
@@ -138,6 +137,7 @@ test-valgrind:
test-asan:
script:
- ls -alhR .
+ - deploy/gcc-sanitizer-asserts/bin/ptunnel-ng --help
- export DISABLE_VALGRIND=y && export PTUNNEL_BIN="deploy/gcc-sanitizer-asserts/bin/ptunnel-ng" && test/integration_test.sh
- mv /tmp/ptunnel-client.log ptunnel-client-sanitizer.log
- mv /tmp/ptunnel-server.log ptunnel-server-sanitizer.log
diff --git a/src/pkt.c b/src/pkt.c
index bbe26d2..774f3c9 100644
--- a/src/pkt.c
+++ b/src/pkt.c
@@ -226,12 +226,13 @@ void handle_packet(char * buf, unsigned bytes, int is_pcap, struct sockaddr_in *
} else if (type_flag == kUser_flag) {
pt_log(kLog_error, "Dropping proxy session request - we are not a proxy!\n");
return;
- } else
+ } else {
pt_log(kLog_error,
"Dropping duplicate proxy session request "
"with ID %d and seq %d.\n",
pt_pkt->id_no,
pt_pkt->seq_no);
+ }
} else if (cur && pt_pkt->state == kProto_authenticate) {
/* Sanity check packet length, and make sure it matches what we expect */
if (pt_pkt->data_len != sizeof(challenge_t)) {