-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
northd: Fix NULL pointer deref within build_bfd_table.
The cb_bt pointer was pointing to different struct and might have been NULL at this point. Make sure we are using the correct pointer in the strcmp() and sbrec_bfd_set_chassis_name() call. At the same time make sure we are actually running all tests that do require the BFD beacon, as it was skipped in all CI stages. The OpenBFDD project is not available as rpm, so we need to compile it from source. Fixes: 4885e33 ("rbac: Only allow relevant chassis to update BFD.") Signed-off-by: Ales Musil <amusil@redhat.com> Acked-by: Mark Michelson <mmichels@redhat.com> Signed-off-by: Mark Michelson <mmichels@redhat.com>
- Loading branch information
Showing
5 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
diff --git a/Logger.cpp b/Logger.cpp | ||
index f375b20..e72afba 100755 | ||
--- a/Logger.cpp | ||
+++ b/Logger.cpp | ||
@@ -11,6 +11,8 @@ | ||
#include <errno.h> | ||
#include <string.h> | ||
#include <unistd.h> | ||
+#include <time.h> | ||
+#include <pthread.h> | ||
|
||
const size_t Logger::MaxMessageLen; | ||
|
||
diff --git a/SchedulerBase.cpp b/SchedulerBase.cpp | ||
index 3eab298..c1dffc4 100755 | ||
--- a/SchedulerBase.cpp | ||
+++ b/SchedulerBase.cpp | ||
@@ -11,6 +11,8 @@ | ||
#include <fcntl.h> | ||
#include <string.h> | ||
#include <unistd.h> | ||
+#include <time.h> | ||
+#include <pthread.h> | ||
|
||
using namespace std; | ||
|
||
diff --git a/utils.cpp b/utils.cpp | ||
index 79c7b68..f846459 100755 | ||
--- a/utils.cpp | ||
+++ b/utils.cpp | ||
@@ -13,6 +13,8 @@ | ||
#include <sys/stat.h> | ||
#include <sys/param.h> | ||
#include <sys/socket.h> | ||
+#include <time.h> | ||
+#include <pthread.h> | ||
|
||
using namespace std; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters