Commit 71f47320 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

r11493@catbus: nickm | 2007-01-24 18:41:52 -0500

 Use set_uint16/32 instead of raw assignments in order to make gcc happier.


svn:r9399
parent b0b96c90
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -622,8 +622,8 @@ circuit_send_next_onion_skin(origin_circuit_t *circ)
      return 0;
    }

    *(uint32_t*)payload = htonl(hop->extend_info->addr);
    *(uint16_t*)(payload+4) = htons(hop->extend_info->port);
    set_uint32(payload, htonl(hop->extend_info->addr));
    set_uint16(payload+4, htons(hop->extend_info->port));

    onionskin = payload+2+4;
    memcpy(payload+2+4+ONIONSKIN_CHALLENGE_LEN,