aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-07-08 13:58:26 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-07-08 13:58:26 -0400
commit1fd91d5449004c8d02c58c05b9a303f520ee746e (patch)
tree2e8fdb5b9f8a7e1ddb0e6a7a63e0296955c6b4c3
parentfb7e221f89fdad477e6425d2673bdd959fb69d17 (diff)
downloadstasis-1fd91d5449004c8d02c58c05b9a303f520ee746e.tar.gz
Bugfix: HTTP_ERROR did not check for negative values
-rw-r--r--src/lib/core/include/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/core/include/core.h b/src/lib/core/include/core.h
index 35a9506..92969d2 100644
--- a/src/lib/core/include/core.h
+++ b/src/lib/core/include/core.h
@@ -15,7 +15,7 @@
#define STASIS_NAME_MAX 255
#define STASIS_DIRSTACK_MAX 1024
#define STASIS_TIME_STR_MAX 128
-#define HTTP_ERROR(X) X >= 400
+#define HTTP_ERROR(X) (X >= 400 || X < 0)
#include "config.h"
#include "core_mem.h"