Parcourir la source

Correctly handle dir connections the close during the pir lookup process

Ian Goldberg il y a 5 ans
Parent
commit
8957e5abcb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
 }