Skip to content

Commit 84c3b15

Browse files
fix: Correct typos
1 parent eda98bb commit 84c3b15

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/payload.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ int fh_payload_setup(void)
265265
len = sizeof(node->payload);
266266
res = make_http_get(node->payload, &len, pinfo->info);
267267
if (res < 0) {
268-
E(T(make_custom));
268+
E(T(make_http_get));
269269
goto cleanup;
270270
}
271271
node->payload_len = len;
@@ -275,7 +275,7 @@ int fh_payload_setup(void)
275275
len = sizeof(node->payload);
276276
res = make_tls_client_hello(node->payload, &len, pinfo->info);
277277
if (res < 0) {
278-
E(T(make_custom));
278+
E(T(make_tls_client_hello));
279279
goto cleanup;
280280
}
281281
node->payload_len = len;

src/rawsend.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static void ipaddr_to_str(struct sockaddr *addr, char ipstr[INET6_ADDRSTRLEN])
8282

8383
if (addr->sa_family == AF_INET) {
8484
res = inet_ntop(AF_INET, &((struct sockaddr_in *) addr)->sin_addr,
85-
ipstr, INET6_ADDRSTRLEN);
85+
ipstr, INET_ADDRSTRLEN);
8686
if (!res) {
8787
goto invalid;
8888
}
@@ -295,7 +295,7 @@ int fh_rawsend_setup(void)
295295
opt = 128;
296296
res = setsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, &opt, sizeof(opt));
297297
if (res < 0) {
298-
E("ERROR: setsockopt(): SO_PRIORITY: %s", strerror(errno));
298+
E("ERROR: setsockopt(): SO_RCVBUF: %s", strerror(errno));
299299
goto close_socket;
300300
}
301301

0 commit comments

Comments
 (0)