diff options
| author | default <nobody@localhost> | 2025-02-17 07:49:11 +0100 |
|---|---|---|
| committer | default <nobody@localhost> | 2025-02-17 07:49:11 +0100 |
| commit | c12a7e38adbce6058ee7d9d4113cce2649c87977 (patch) | |
| tree | b5e4d6f27ea360876683ab5907bc8d763dd47ee6 | |
| parent | ef80717a1c8963135bafcc35dddc069305e5e182 (diff) | |
Return ASAP if srv_open() fails.
| -rw-r--r-- | data.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -99,6 +99,9 @@ int srv_open(const char *basedir, int auto_upgrade) if (error != NULL) srv_log(error); + if (!ret) + return ret; + /* create the queue/ subdir, just in case */ xs *qdir = xs_fmt("%s/queue", srv_basedir); mkdirx(qdir); |