diff --git a/lib/confd/client.py b/lib/confd/client.py
index 803fbb5ab14ae7bd6746ff3e9c9822c7a7ecaad7..ee5b41aee88631109337f054ab8a6817152e2fb2 100644
--- a/lib/confd/client.py
+++ b/lib/confd/client.py
@@ -335,8 +335,8 @@ class ConfdFilterCallback:
 
   def _HandleExpire(self, up):
     # if we have no answer we have received none, before the expiration.
-    if salt in self._answers:
-      del self._answers[salt]
+    if up.salt in self._answers:
+      del self._answers[up.salt]
 
   def _HandleReply(self, up):
     """Handle a single confd reply, and decide whether to filter it.