Skip to content
Open

Dev #638

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change buf
  • Loading branch information
nmai32266 committed May 31, 2025
commit be1329da46322d5f391b7d91c9add5ca5d16d774
3 changes: 2 additions & 1 deletion net/net-tcp-rpc-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,8 @@ int tcp_rpcc_init_crypto (connection_job_t C) {
struct tcp_rpc_nonce_packet s;
struct tcp_rpc_nonce_ext_packet x;
struct tcp_rpc_nonce_dh_packet dh;
} buf;
} buf[32];

int len = sizeof (struct tcp_rpc_nonce_packet);

memset (&buf, 0, sizeof (buf));
Expand Down
2 changes: 1 addition & 1 deletion net/net-tcp-rpc-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ int tcp_rpcs_init_crypto (connection_job_t C, struct tcp_rpc_nonce_packet *P) {
struct tcp_rpc_nonce_packet s;
struct tcp_rpc_nonce_ext_packet x;
struct tcp_rpc_nonce_dh_packet dh;
} buf;
} buf[32];

struct tcp_rpc_nonce_dh_packet *old_dh = 0, *new_dh = 0;
unsigned char temp_dh[256];
Expand Down