Commit 5ee1de65 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Only send begin cell flags when we have some to send

parent a62c03fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1683,7 +1683,7 @@ connection_ap_handshake_send_begin(entry_connection_t *ap_conn)
                 ap_conn->socks_request->address : "",
               ap_conn->socks_request->port);
  payload_len = (int)strlen(payload)+1;
  if (payload_len <= RELAY_PAYLOAD_SIZE - 4) {
  if (payload_len <= RELAY_PAYLOAD_SIZE - 4 && edge_conn->begincell_flags) {
    set_uint32(payload + payload_len, htonl(edge_conn->begincell_flags));
    payload_len += 4;
  }