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



commit 4ca16fda6460d1eb7120d5c81ecf22b952dfc2ad
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 6715110..927ffcb 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]