2006-03-30 Robert Love <rml@novell.com>

Patch by Crispin Flowerday <gnome@flowerday.cx>:
	* src/nm-openvpn-service-helper.c: Fix crash when no PtP IP address is
	  supplied.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1666 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Robert Love 2006-03-30 17:21:18 +00:00 committed by Robert Love
parent 992f148ffa
commit 1623ee455a
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2006-03-30 Robert Love <rml@novell.com>
Patch by Crispin Flowerday <gnome@flowerday.cx>:
* src/nm-openvpn-service-helper.c: Fix crash when no PtP IP address is
supplied.
2006-03-29 Robert Love <rml@novell.com>
* src/nm-openvpn-service.c: New eigth argument to DBUS VPN method, the

View file

@ -175,7 +175,7 @@ send_config_info (DBusConnection *con,
goto out;
}
if (! ipstr_to_uint32 (str_ip4_ptpaddr, &uint_ip4_ptpaddr) ) {
if (str_ip4_ptpaddr && ! ipstr_to_uint32 (str_ip4_ptpaddr, &uint_ip4_ptpaddr) ) {
nm_warning ("nm-openvpn-service-openvpn-helper didn't receive a valid PtP IP4 Address from openvpn.");
send_config_error (con, "IP4 PtP Address");
goto out;