diff options
author | Bart Polot <bart@net.in.tum.de> | 2016-10-26 04:20:52 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2016-10-26 04:20:52 +0000 |
commit | 4101c2a6c6364688a58f0d9d3a628aa57f25f0d6 (patch) | |
tree | 005ae316c1d5fb07ba2ceb08f456061aa09102d2 /src | |
parent | 97ea58bc413551af02172f1f13fc3fcb71198c64 (diff) | |
download | gnunet-4101c2a6c6364688a58f0d9d3a628aa57f25f0d6.tar.gz gnunet-4101c2a6c6364688a58f0d9d3a628aa57f25f0d6.zip |
- simplify KX code
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index e60c3c023..fc715a419 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -1575,7 +1575,6 @@ send_kx (struct CadetTunnel *t, | |||
1575 | char cbuf[sizeof (struct GNUNET_CADET_KX) + size]; | 1575 | char cbuf[sizeof (struct GNUNET_CADET_KX) + size]; |
1576 | uint16_t type; | 1576 | uint16_t type; |
1577 | int fwd; | 1577 | int fwd; |
1578 | GCC_sent cont; | ||
1579 | 1578 | ||
1580 | LOG (GNUNET_ERROR_TYPE_DEBUG, "GMT KX on Tunnel %s\n", GCT_2s (t)); | 1579 | LOG (GNUNET_ERROR_TYPE_DEBUG, "GMT KX on Tunnel %s\n", GCT_2s (t)); |
1581 | 1580 | ||
@@ -1621,7 +1620,6 @@ send_kx (struct CadetTunnel *t, | |||
1621 | { | 1620 | { |
1622 | case GNUNET_MESSAGE_TYPE_CADET_AX_KX: | 1621 | case GNUNET_MESSAGE_TYPE_CADET_AX_KX: |
1623 | GNUNET_assert (NULL == t->ephm_h); | 1622 | GNUNET_assert (NULL == t->ephm_h); |
1624 | cont = &ephm_sent; | ||
1625 | break; | 1623 | break; |
1626 | default: | 1624 | default: |
1627 | LOG (GNUNET_ERROR_TYPE_DEBUG, "unkown type %s\n", GC_m2s (type)); | 1625 | LOG (GNUNET_ERROR_TYPE_DEBUG, "unkown type %s\n", GC_m2s (type)); |
@@ -1633,7 +1631,7 @@ send_kx (struct CadetTunnel *t, | |||
1633 | 1631 | ||
1634 | return GCC_send_prebuilt_message (&msg->header, type, 0, c, | 1632 | return GCC_send_prebuilt_message (&msg->header, type, 0, c, |
1635 | fwd, GNUNET_YES, | 1633 | fwd, GNUNET_YES, |
1636 | cont, t); | 1634 | &ephm_sent, t); |
1637 | } | 1635 | } |
1638 | 1636 | ||
1639 | 1637 | ||