Fossil SCM
Fix a typo in differentiating timeouts from other panics in the error log.
Commit
11bd17cb33abd51dc1886290edc382e12293a0043cdd9b3823375dfec432aa64
Parent
ae7e3f0485e46e6…
1 file changed
+1
-1
+1
-1
| --- src/security_audit.c | ||
| +++ src/security_audit.c | ||
| @@ -971,11 +971,11 @@ | ||
| 971 | 971 | if( strncmp(z,"possible hack attempt - 418 ", 27)==0 ){ |
| 972 | 972 | bOutput = (eType & 0x01)!=0; |
| 973 | 973 | nHack++; |
| 974 | 974 | }else |
| 975 | 975 | if( strncmp(z,"panic: ", 7)==0 ){ |
| 976 | - if( strncmp(z+7,"Timeout",7) ){ | |
| 976 | + if( strncmp(z+7,"Timeout",7)==0 ){ | |
| 977 | 977 | bOutput = (eType & 0x100)!=0; |
| 978 | 978 | nTimeout++; |
| 979 | 979 | }else{ |
| 980 | 980 | bOutput = (eType & 0x02)!=0; |
| 981 | 981 | nPanic++; |
| 982 | 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) ){ |
| 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 |