Skip to content

Commit

Permalink
fix a bug where OR is used instead of AND
Browse files Browse the repository at this point in the history
  • Loading branch information
digizeph committed Jul 18, 2024
1 parent 7e2be32 commit 188bb55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asinfo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ impl BgpkitCommons {

let info_1_opt = self.asinfo_get(asn1)?;
let info_2_opt = self.asinfo_get(asn2)?;
if info_1_opt.is_some() || info_2_opt.is_some() {
if info_1_opt.is_some() && info_2_opt.is_some() {
let org_1_opt = info_1_opt.unwrap().as2org;
let org_2_opt = info_2_opt.unwrap().as2org;
if org_1_opt.is_some() || org_2_opt.is_some() {
Expand Down

0 comments on commit 188bb55

Please sign in to comment.