diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-02-06 07:30:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-06 07:30:21 -0500 |
| commit | 36955f90e39842d16fd61aa4752e67f4be5165b8 (patch) | |
| tree | 49b44a34e0830965cfe100583722febdb058a346 /ospfclient/ospf_apiclient.c | |
| parent | 49fbe066404cb46705d4e7f6fe80796cb41b172a (diff) | |
| parent | 5fc7946dd7c0e90d9677c15dda13f56c90c72ee6 (diff) | |
Merge pull request #5767 from ton31337/fix/replace_s_addr_0_to_INADDR_ANY
MOAR CODE NAZI: replace s_addr 0 => INADDR_ANY
Diffstat (limited to 'ospfclient/ospf_apiclient.c')
| -rw-r--r-- | ospfclient/ospf_apiclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfclient/ospf_apiclient.c b/ospfclient/ospf_apiclient.c index 50485cc7e2..da390e3c70 100644 --- a/ospfclient/ospf_apiclient.c +++ b/ospfclient/ospf_apiclient.c @@ -451,7 +451,7 @@ int ospf_apiclient_lsa_originate(struct ospf_apiclient *oclient, tmp = SET_OPAQUE_LSID(opaque_type, opaque_id); lsah->id.s_addr = htonl(tmp); - lsah->adv_router.s_addr = 0; + lsah->adv_router.s_addr = INADDR_ANY; lsah->ls_seqnum = 0; lsah->checksum = 0; lsah->length = htons(sizeof(struct lsa_header) + opaquelen); |
