Skip to content

Commit

Permalink
dionaea - Fix reconnect with IP only
Browse files Browse the repository at this point in the history
  • Loading branch information
phibos committed Jun 21, 2018
1 parent 137eccd commit 6bd0d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.c
Expand Up @@ -1143,7 +1143,7 @@ void connection_reconnect_timeout_cb(EV_P_ struct ev_timer *w, int revents)
ev_timer_stop(EV_A_ w);
connection_set_state(con, connection_state_none);

if( !parse_addr(con->remote.hostname, NULL, ntohs(con->remote.port), &sa, &socket_domain, &sizeof_sa) )
if( con->remote.hostname != NULL && !parse_addr(con->remote.hostname, NULL, ntohs(con->remote.port), &sa, &socket_domain, &sizeof_sa) )
{ /* domain */
if( con->remote.dns.resolved_address_count == con->remote.dns.current_address )
{ /* tried all resolved ips already */
Expand Down

0 comments on commit 6bd0d0b

Please sign in to comment.