mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-03 19:51:32 +02:00
Reject + sign when checking -ipcfd
This commit is contained in:
parent
fa479857ed
commit
fa123afa0e
@ -55,9 +55,11 @@ public:
|
|||||||
// in combination with other arguments because the parent process
|
// in combination with other arguments because the parent process
|
||||||
// should be able to control the child process through the IPC protocol
|
// should be able to control the child process through the IPC protocol
|
||||||
// without passing information out of band.
|
// without passing information out of band.
|
||||||
if (!ParseInt32(argv[2], &fd)) {
|
const auto maybe_fd{ToIntegral<int32_t>(argv[2])};
|
||||||
|
if (!maybe_fd) {
|
||||||
throw std::runtime_error(strprintf("Invalid -ipcfd number '%s'", argv[2]));
|
throw std::runtime_error(strprintf("Invalid -ipcfd number '%s'", argv[2]));
|
||||||
}
|
}
|
||||||
|
fd = *maybe_fd;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
int connect(const fs::path& data_dir,
|
int connect(const fs::path& data_dir,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user