소스 검색

remove extraneous breaks

commit edeba3d4 removed a switch, but left the "break" lines in
from that switch. fortunately the resulting behavior was not wrong,
since there was an outer switch that it was ok to break from.
Roger Dingledine 8 년 전
부모
커밋
580e549f75
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/or/directory.c

+ 0 - 2
src/or/directory.c

@@ -2305,7 +2305,6 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
            * cleans this dir conn up. */
           SEND_HS_DESC_FAILED_EVENT("BAD_DESC");
           SEND_HS_DESC_FAILED_CONTENT();
-          break;
         } else {
           char service_id[REND_SERVICE_ID_LEN_BASE32 + 1];
           /* Should never be NULL here if we found the descriptor. */
@@ -2325,7 +2324,6 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
           conn->base_.purpose = DIR_PURPOSE_HAS_FETCHED_RENDDESC_V2;
           rend_client_desc_trynow(service_id);
           memwipe(service_id, 0, sizeof(service_id));
-          break;
         }
         break;
       }