소스 검색

Merge remote-tracking branch 'tor-github/pr/863'

teor 6 년 전
부모
커밋
fdee4dd501
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/lib/pubsub/pubsub_check.c

+ 2 - 2
src/lib/pubsub/pubsub_check.c

@@ -303,14 +303,14 @@ lint_message_consistency(message_id_t msg,
   /* Enforce exclusive-ness for publishers and subscribers that have asked for
   /* Enforce exclusive-ness for publishers and subscribers that have asked for
    * it.
    * it.
    */
    */
-  if (pub_excl && smartlist_len(pub) > 1) {
+  if (pub_excl && smartlist_len_opt(pub) > 1) {
     log_warn(LD_MESG|LD_BUG,
     log_warn(LD_MESG|LD_BUG,
              "Message \"%s\" has multiple publishers, but at least one is "
              "Message \"%s\" has multiple publishers, but at least one is "
              "marked as exclusive.",
              "marked as exclusive.",
              get_message_id_name(msg));
              get_message_id_name(msg));
     ok = false;
     ok = false;
   }
   }
-  if (sub_excl && smartlist_len(sub) > 1) {
+  if (sub_excl && smartlist_len_opt(sub) > 1) {
     log_warn(LD_MESG|LD_BUG,
     log_warn(LD_MESG|LD_BUG,
              "Message \"%s\" has multiple subscribers, but at least one is "
              "Message \"%s\" has multiple subscribers, but at least one is "
              "marked as exclusive.",
              "marked as exclusive.",