Skip to content

Commit 7ca7776

Browse files
anlancsmergify[bot]
authored andcommitted
ospfd: remove unnecessary space
Remove unnecessary spaces in config written with `interface_config_auth_str()`. Before: ``` interface enp1s0 ip ospf authentication 1.2.3.4 ``` After: ``` interface enp1s0 ip ospf authentication 1.2.3.4 ``` Also, remove trailing one from "area <> virtual-link <> authentication" in this same way. Signed-off-by: anlan_cs <anlan_cs@126.com> (cherry picked from commit 7a45f27)
1 parent 9c151b9 commit 7ca7776

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ospfd/ospf_vty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12105,7 +12105,7 @@ static int interface_config_auth_str(struct ospf_if_params *params, char *buf)
1210512105
break;
1210612106

1210712107
case OSPF_AUTH_SIMPLE:
12108-
snprintf(buf, BUFSIZ, " ");
12108+
buf[0] = '\0';
1210912109
break;
1211012110

1211112111
case OSPF_AUTH_CRYPTOGRAPHIC:

0 commit comments

Comments
 (0)