diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2021-03-16 14:03:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-16 14:03:34 -0400 |
| commit | 3406c16cbeecafb400cc2155a1ca9f9504c95b4e (patch) | |
| tree | 7853ddaa015a1542723f925b863d4440d9ff3529 /pathd/path_pcep_lib.c | |
| parent | 30643d6f314c8b5462073b2382c799b7966528e8 (diff) | |
| parent | 749714731ee9a59ae39be77e7db3915ce3ad0bd8 (diff) | |
Merge pull request #7963 from volta-networks/feat_pceplib_into_frr_github
pceplib: Integrate pcelib into frr
Diffstat (limited to 'pathd/path_pcep_lib.c')
| -rw-r--r-- | pathd/path_pcep_lib.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pathd/path_pcep_lib.c b/pathd/path_pcep_lib.c index bb6bfb1336..1d2f25889e 100644 --- a/pathd/path_pcep_lib.c +++ b/pathd/path_pcep_lib.c @@ -16,9 +16,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <zebra.h> + #include <debug.h> -#include <pcep_utils_counters.h> -#include <pcep_timers.h> +#include "pceplib/pcep_utils_counters.h" +#include "pceplib/pcep_timers.h" #include "pathd/path_errors.h" #include "pathd/path_memory.h" #include "pathd/path_pcep.h" @@ -176,11 +178,11 @@ pcep_lib_connect(struct ipaddr *src_addr, int src_port, struct ipaddr *dst_addr, /* TODO when available in the pceplib, set it here pcep_options->state_timeout_inteval_seconds;*/ - if (pcep_options->tcp_md5_auth != NULL - && pcep_options->tcp_md5_auth[0] != '\0') { + if (pcep_options->tcp_md5_auth[0] != '\0') { config->is_tcp_auth_md5 = true; - strncpy(config->tcp_authentication_str, - pcep_options->tcp_md5_auth, TCP_MD5SIG_MAXKEYLEN); + strlcpy(config->tcp_authentication_str, + pcep_options->tcp_md5_auth, + sizeof(config->tcp_authentication_str)); } else { config->is_tcp_auth_md5 = false; } |
