diff options
-rw-r--r-- | networking/ifupdown.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index ebf528d71..a8a746453 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -799,13 +799,13 @@ static struct interfaces_file_t *read_interfaces(char *filename) | |||
799 | 799 | ||
800 | currif->address_family = get_address_family(addr_fams, address_family_name); | 800 | currif->address_family = get_address_family(addr_fams, address_family_name); |
801 | if (!currif->address_family) { | 801 | if (!currif->address_family) { |
802 | bb_error_msg("unknown address type \"%s\"", buf); | 802 | bb_error_msg("unknown address type \"%s\"", address_family_name); |
803 | return NULL; | 803 | return NULL; |
804 | } | 804 | } |
805 | 805 | ||
806 | currif->method = get_method(currif->address_family, method_name); | 806 | currif->method = get_method(currif->address_family, method_name); |
807 | if (!currif->method) { | 807 | if (!currif->method) { |
808 | bb_error_msg("unknown method \"%s\"", buf); | 808 | bb_error_msg("unknown method \"%s\"", method_name); |
809 | return NULL; | 809 | return NULL; |
810 | } | 810 | } |
811 | 811 | ||