Hi

My proxy challenges SUBSCRIBEs with a 401, and ssip-gst used to make 
gaim dump core because the username variable was used without being 
initialized in ssip.c ssip_r_subscribe().

The attached patch fixes the problem. The patch is against version 
1.0.0, but it seems that ssip.c in CVS hasn't changed since that 
version.

/Fredrik
Binary files ssip-gst-1.0.0.orig/core and ssip-gst-1.0.0/core differ
diff -ru ssip-gst-1.0.0.orig/src/ssip.c ssip-gst-1.0.0/src/ssip.c
--- ssip-gst-1.0.0.orig/src/ssip.c	2006-01-18 03:59:15.000000000 +0100
+++ ssip-gst-1.0.0/src/ssip.c	2006-06-02 09:37:41.000000000 +0200
@@ -758,6 +758,9 @@
     char *auth = NULL;
     char *tmp = NULL;
     
+    username = gaim_account_get_username(account);
+    passwd = gaim_account_get_password(account);
+
     if (sip && sip->sip_www_authenticate) {
       scheme = (char const *) sip->sip_www_authenticate->au_scheme;
       realm = (char const *) *sip->sip_www_authenticate->au_params;
Only in ssip-gst-1.0.0/src: ssip.c~
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to