瀏覽代碼

Correctly handle dir connections the close during the pir lookup process

Ian Goldberg 5 年之前
父節點
當前提交
8957e5abcb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/feature/hs/hs_pirprocess.c

+ 1 - 1
src/feature/hs/hs_pirprocess.c

@@ -431,5 +431,5 @@ hs_pirprocess_lookup_reqid(uint64_t reqid)
     memset(mapbuf, 0, DIGEST_LEN);
     memmove(mapbuf, &reqid, sizeof(reqid));
     entry = digestmap_get(pirprocess_reqid_map, mapbuf);
-    return entry->conn;
+    return entry ? entry->conn : NULL;
 }