NetworkManager r4117 - trunk/vpn-daemons/pptp/src
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r4117 - trunk/vpn-daemons/pptp/src
- Date: Fri, 26 Sep 2008 15:02:11 +0000 (UTC)
Author: dcbw
Date: Fri Sep 26 15:02:11 2008
New Revision: 4117
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4117&view=rev
Log:
Fix segfault when no domain is specified (caused by incomplete r4107)
Modified:
trunk/vpn-daemons/pptp/src/nm-pptp-service.c
Modified: trunk/vpn-daemons/pptp/src/nm-pptp-service.c
==============================================================================
--- trunk/vpn-daemons/pptp/src/nm-pptp-service.c (original)
+++ trunk/vpn-daemons/pptp/src/nm-pptp-service.c Fri Sep 26 15:02:11 2008
@@ -282,7 +282,7 @@
}
domain = g_hash_table_lookup (s_vpn->data, NM_PPTP_KEY_DOMAIN);
- if (strlen (domain))
+ if (domain && strlen (domain))
memcpy (priv->domain, domain, strlen (domain));
memcpy (priv->username, username, strlen (username));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]