Fossil SCM

Fix a typo in differentiating timeouts from other panics in the error log.

drh 2025-12-15 21:49 trunk
Commit 11bd17cb33abd51dc1886290edc382e12293a0043cdd9b3823375dfec432aa64
1 file changed +1 -1
--- src/security_audit.c
+++ src/security_audit.c
@@ -971,11 +971,11 @@
971971
if( strncmp(z,"possible hack attempt - 418 ", 27)==0 ){
972972
bOutput = (eType & 0x01)!=0;
973973
nHack++;
974974
}else
975975
if( strncmp(z,"panic: ", 7)==0 ){
976
- if( strncmp(z+7,"Timeout",7) ){
976
+ if( strncmp(z+7,"Timeout",7)==0 ){
977977
bOutput = (eType & 0x100)!=0;
978978
nTimeout++;
979979
}else{
980980
bOutput = (eType & 0x02)!=0;
981981
nPanic++;
982982
--- src/security_audit.c
+++ src/security_audit.c
@@ -971,11 +971,11 @@
971 if( strncmp(z,"possible hack attempt - 418 ", 27)==0 ){
972 bOutput = (eType & 0x01)!=0;
973 nHack++;
974 }else
975 if( strncmp(z,"panic: ", 7)==0 ){
976 if( strncmp(z+7,"Timeout",7) ){
977 bOutput = (eType & 0x100)!=0;
978 nTimeout++;
979 }else{
980 bOutput = (eType & 0x02)!=0;
981 nPanic++;
982
--- src/security_audit.c
+++ src/security_audit.c
@@ -971,11 +971,11 @@
971 if( strncmp(z,"possible hack attempt - 418 ", 27)==0 ){
972 bOutput = (eType & 0x01)!=0;
973 nHack++;
974 }else
975 if( strncmp(z,"panic: ", 7)==0 ){
976 if( strncmp(z+7,"Timeout",7)==0 ){
977 bOutput = (eType & 0x100)!=0;
978 nTimeout++;
979 }else{
980 bOutput = (eType & 0x02)!=0;
981 nPanic++;
982

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button