about summary refs log tree commit diff
path: root/src/nix-worker
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-worker')
-rw-r--r--src/nix-worker/nix-worker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc
index e4fe94926b63..c956f839ec39 100644
--- a/src/nix-worker/nix-worker.cc
+++ b/src/nix-worker/nix-worker.cc
@@ -292,7 +292,7 @@ static void performOp(unsigned int clientVersion,
         string baseName = readString(from);
         readInt(from); /* obsolete; was `fixed' flag */
         bool recursive = readInt(from) == 1;
-        string hashAlgo = readString(from);
+        HashType hashAlgo = parseHashType(readString(from));
         
         Path tmp = createTempDir();
         AutoDelete delTmp(tmp);