[network-manager-pptp] core: fix crash due to 311f38e80670e10f4ee61f8722a60cf5640d8b37



commit d2fffd1ab969b2d5151531ea544d19153b5b6688
Author: Eivind Naess <eivnaes yahoo com>
Date:   Mon Apr 4 21:49:44 2011 -0500

    core: fix crash due to 311f38e80670e10f4ee61f8722a60cf5640d8b37

 src/nm-pptp-service.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nm-pptp-service.c b/src/nm-pptp-service.c
index 16f60d3..68a5759 100644
--- a/src/nm-pptp-service.c
+++ b/src/nm-pptp-service.c
@@ -431,7 +431,7 @@ impl_pptp_service_need_secrets (NMPptpPppService *self,
 	}
 
 	/* Success */
-	if (strlen (priv->domain))
+	if (priv->domain && strlen (priv->domain))
 		*out_username = g_strdup_printf ("%s\\%s", priv->domain, priv->username);
 	else
 		*out_username = g_strdup (priv->username);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]