Skip to content

Commit

Permalink
Check for existence of default domain before using it.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Oct 3, 2019
1 parent d0c1257 commit dc0c7f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/net-tcp-rpc-ext-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ static int proxy_connection (connection_job_t C, const struct domain_info *info)

int tcp_rpcs_ext_alarm (connection_job_t C) {
struct tcp_rpc_data *D = TCP_RPC_DATA (C);
if (D->in_packet_num == -3) {
if (D->in_packet_num == -3 && default_domain_info != NULL) {
return proxy_connection (C, default_domain_info);
} else {
return 0;
Expand Down

0 comments on commit dc0c7f3

Please sign in to comment.