[PATCH] pppoe: handle service string empty case
- From: "Vitja Makarov" <vitja makarov gmail com>
- To: "network manager" <networkmanager-list gnome org>
- Subject: [PATCH] pppoe: handle service string empty case
- Date: Tue, 1 Apr 2008 22:56:08 +0400
rp-pppoe could be started with empty service string, this fixes the case.
Index: src/ppp-manager/nm-ppp-manager.c
===================================================================
--- src/ppp-manager/nm-ppp-manager.c (revision 3521)
+++ src/ppp-manager/nm-ppp-manager.c (working copy)
@@ -509,7 +509,7 @@
nm_cmd_line_add_string (cmd, dev_str);
g_free (dev_str);
- if (pppoe->service) {
+ if (pppoe->service && *pppoe->service) {
nm_cmd_line_add_string (cmd, "rp_pppoe_service");
nm_cmd_line_add_string (cmd, pppoe->service);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]