aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordev0 <matzeton@googlemail.com>2019-01-16 23:13:47 +0100
committerGitHub <noreply@github.com>2019-01-16 23:13:47 +0100
commit5850d4218e7199c80499217a6f9faeb967f69c08 (patch)
tree5a39412ad8cd39b814f6c0878783c5c850433553 /src
parentbf54c7ed64a17693762a9db4fbaa3765d182a501 (diff)
cosmetics
ty very much @elnerd
Diffstat (limited to 'src')
-rw-r--r--src/pkt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pkt.c b/src/pkt.c
index 9ba2181..d446ffd 100644
--- a/src/pkt.c
+++ b/src/pkt.c
@@ -170,20 +170,19 @@ void handle_packet(char *buf, unsigned bytes, int is_pcap, struct sockaddr_in *a
else
init_state = kProto_data;
- cur = (proxy_desc_t*) create_and_insert_proxy_desc(pt_pkt->id_no, pkt->identifier, 0,
+ cur = (proxy_desc_t *) create_and_insert_proxy_desc(pt_pkt->id_no, pkt->identifier, 0,
addr, pt_pkt->dst_ip,
ntohl(pt_pkt->dst_port),
init_state, kProxy_flag);
if (!cur) {
/* if failed, abort. Logging is done in create_insert_proxy_desc */
- pt_log(kLog_info, "failed to create proxy descriptor\n");
+ pt_log(kLog_error, "Failed to create proxy descriptor!\n");
return;
}
if (init_state == kProto_authenticate) {
pt_log(kLog_debug, "Sending authentication challenge..\n");
/* Send challenge */
cur->challenge = generate_challenge();
- pt_log(kLog_debug, "Challenge generated\n");
memcpy(cur->buf, cur->challenge, sizeof(challenge_t));
queue_packet(icmp_sock, cur->pkt_type, cur->buf,
sizeof(challenge_t), cur->id_no,