projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c528af
)
fatal-signal: Fix bug in call_hooks() recursion detection.
author
Ben Pfaff
<blp@nicira.com>
Fri, 9 Jan 2009 01:20:34 +0000
(17:20 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 13 Jan 2009 01:00:29 +0000
(17:00 -0800)
Found by Chris Eagle via Fortify.
lib/fatal-signal.c
patch
|
blob
|
history
diff --git
a/lib/fatal-signal.c
b/lib/fatal-signal.c
index b05bd2819590b8eb2adc7e003f9967017e4b3dd9..0bfa35bcb372512c97d02cc53a5da2fc40370086 100644
(file)
--- a/
lib/fatal-signal.c
+++ b/
lib/fatal-signal.c
@@
-167,7
+167,7
@@
atexit_handler(void)
static void
call_hooks(int sig_nr)
{
- volatile sig_atomic_t recurse = 0;
+
static
volatile sig_atomic_t recurse = 0;
if (!recurse) {
size_t i;