diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-02-07 13:25:21 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-02-07 13:25:21 -0500 | 
| commit | b6d2bb07d86e3e2799643e9ef828943378ab8429 (patch) | |
| tree | 7e6e8d6ee9d13a0986bc4db91a167e28236e7d5f /bfdd/ptm_adapter.c | |
| parent | 81ef8a69ae3ca88a800312e60884d0a19f3c5528 (diff) | |
bfdd: Use AF_UNSPEC instead of comparing to 0
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bfdd/ptm_adapter.c')
| -rw-r--r-- | bfdd/ptm_adapter.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/bfdd/ptm_adapter.c b/bfdd/ptm_adapter.c index b0eb85e5f8..0e5f701fc2 100644 --- a/bfdd/ptm_adapter.c +++ b/bfdd/ptm_adapter.c @@ -457,7 +457,7 @@ static int _ptm_msg_read(struct stream *msg, int command, vrf_id_t vrf_id,  	}  	/* Sanity check: peer and local address must match IP types. */ -	if (bpc->bpc_local.sa_sin.sin_family != 0 +	if (bpc->bpc_local.sa_sin.sin_family != AF_UNSPEC  	    && (bpc->bpc_local.sa_sin.sin_family  		!= bpc->bpc_peer.sa_sin.sin_family)) {  		zlog_warn("ptm-read: peer family doesn't match local type");  | 
