about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-03-27T14·12+0200
committerEelco Dolstra <edolstra@gmail.com>2018-05-30T11·27+0200
commite606cd412f6ad0622feff55dc2a023dc4b2fe238 (patch)
tree965150bd1f4ea487a661bcceceebfd48b5368e21 /src/libstore
parent6185d25e523a3cd223dd6f6aca10cf6ff15b4823 (diff)
Fix assertion failure in storePathToHash()
Fixes https://github.com/NixOS/nix/issues/2015.
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/store-api.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 1a0d12ca78c2..a8f3ae1ea6c5 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -253,6 +253,8 @@ std::string Store::getUri()
 
 bool Store::isValidPath(const Path & storePath)
 {
+    assertStorePath(storePath);
+
     auto hashPart = storePathToHash(storePath);
 
     {