diff options
Diffstat (limited to 'src/mesh/gnunet-service-mesh_connection.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_connection.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index 99b156595..afdb801c9 100644 --- a/src/mesh/gnunet-service-mesh_connection.c +++ b/src/mesh/gnunet-service-mesh_connection.c | |||
@@ -1405,13 +1405,14 @@ handle_mesh_encrypted (const struct GNUNET_PeerIdentity *peer, | |||
1405 | } | 1405 | } |
1406 | else | 1406 | else |
1407 | { | 1407 | { |
1408 | /* Unexpected peer sending traffic on a connection. */ | ||
1408 | GNUNET_break_op (0); | 1409 | GNUNET_break_op (0); |
1409 | return GNUNET_OK; | 1410 | return GNUNET_OK; |
1410 | } | 1411 | } |
1411 | } | 1412 | } |
1412 | fc = fwd ? &c->bck_fc : &c->fwd_fc; | ||
1413 | 1413 | ||
1414 | /* Check PID */ | 1414 | /* Check PID */ |
1415 | fc = fwd ? &c->bck_fc : &c->fwd_fc; | ||
1415 | pid = ntohl (msg->pid); | 1416 | pid = ntohl (msg->pid); |
1416 | if (GMC_is_pid_bigger (pid, fc->last_ack_sent)) | 1417 | if (GMC_is_pid_bigger (pid, fc->last_ack_sent)) |
1417 | { | 1418 | { |
@@ -1429,7 +1430,7 @@ handle_mesh_encrypted (const struct GNUNET_PeerIdentity *peer, | |||
1429 | pid, fc->last_pid_recv + 1); | 1430 | pid, fc->last_pid_recv + 1); |
1430 | return GNUNET_OK; | 1431 | return GNUNET_OK; |
1431 | } | 1432 | } |
1432 | if (MESH_CONNECTION_SENT == c->state) | 1433 | if (MESH_CONNECTION_SENT == c->state || MESH_CONNECTION_ACK == c->state) |
1433 | connection_change_state (c, MESH_CONNECTION_READY); | 1434 | connection_change_state (c, MESH_CONNECTION_READY); |
1434 | connection_reset_timeout (c, fwd); | 1435 | connection_reset_timeout (c, fwd); |
1435 | fc->last_pid_recv = pid; | 1436 | fc->last_pid_recv = pid; |