diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-07-23 01:52:18 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-07-23 01:52:18 +0200 |
commit | 15b0a9229431dc75425c229b2f94e680db49d594 (patch) | |
tree | 3928d3d261fd993096bd8c85edd58399870ecee7 /proto/rpki | |
parent | d843c274781bf9d30bfba93229b9f02a88f26fe2 (diff) |
RPKI: Fix reconfiguration when ssh parameters are undefined
Diffstat (limited to 'proto/rpki')
-rw-r--r-- | proto/rpki/rpki.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proto/rpki/rpki.c b/proto/rpki/rpki.c index 36097dc5..70cd0cdd 100644 --- a/proto/rpki/rpki.c +++ b/proto/rpki/rpki.c @@ -687,9 +687,9 @@ rpki_reconfigure_cache(struct rpki_proto *p UNUSED, struct rpki_cache *cache, st { struct rpki_tr_ssh_config *ssh_old = (void *) old->tr_config.spec; struct rpki_tr_ssh_config *ssh_new = (void *) new->tr_config.spec; - if ((strcmp(ssh_old->bird_private_key, ssh_new->bird_private_key) != 0) || - (strcmp(ssh_old->cache_public_key, ssh_new->cache_public_key) != 0) || - (strcmp(ssh_old->user, ssh_new->user) != 0)) + if (bstrcmp(ssh_old->bird_private_key, ssh_new->bird_private_key) || + bstrcmp(ssh_old->cache_public_key, ssh_new->cache_public_key) || + bstrcmp(ssh_old->user, ssh_new->user)) { CACHE_TRACE(D_EVENTS, cache, "Settings of SSH transport configuration changed"); try_fast_reconnect = 1; |