From 94ddea9e2fffe2c0818653c509f881ae00f14d93 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 4 Jun 2020 20:54:55 +0000 Subject: [PATCH] Use `readString` rather than `>> temporary` Fixed the rest of these before, but this one slipped through. --- src/libstore/daemon.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc index 0734f990a..63b8d4bfe 100644 --- a/src/libstore/daemon.cc +++ b/src/libstore/daemon.cc @@ -708,11 +708,7 @@ static void performOp(TunnelLogger * logger, ref store, info.references = readStorePaths(*store, from); from >> info.registrationTime >> info.narSize >> info.ultimate; info.sigs = readStrings(from); - { - string caOptRaw; - from >> caOptRaw; - info.ca = parseContentAddressOpt(caOptRaw); - } + info.ca = parseContentAddressOpt(readString(from)); from >> repair >> dontCheckSigs; if (!trusted && dontCheckSigs) dontCheckSigs = false;