Rev 1268: Fix segfault. in file:///data/jelmer/bzr-svn/0.4-ra-cext/

Jelmer Vernooij jelmer at samba.org
Sun Jun 22 07:49:48 BST 2008


At file:///data/jelmer/bzr-svn/0.4-ra-cext/

------------------------------------------------------------
revno: 1268
revision-id: jelmer at samba.org-20080622064947-9d72l114ud9ku9pg
parent: jelmer at samba.org-20080622061438-xanmlmwhq1wd35fg
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4-ra-cext
timestamp: Sun 2008-06-22 08:49:47 +0200
message:
  Fix segfault.
modified:
  client.c                       client.pyx-20080313235339-wbyjbw2namuiql8f-1
  tests/__init__.py              __init__.py-20060508151940-e9f4d914801a2535
=== modified file 'client.c'
--- a/client.c	2008-06-22 06:04:20 +0000
+++ b/client.c	2008-06-22 06:49:47 +0000
@@ -183,6 +183,8 @@
 
 	ret->py_auth = NULL;
 	ret->py_config = NULL;
+	ret->client->notify_func2 = NULL;
+	ret->client->notify_baton2 = NULL;
 	client_set_config((PyObject *)ret, config, NULL);
 	client_set_auth((PyObject *)ret, auth, NULL);
     return (PyObject *)ret;

=== modified file 'tests/__init__.py'
--- a/tests/__init__.py	2008-06-22 06:04:20 +0000
+++ b/tests/__init__.py	2008-06-22 06:49:47 +0000
@@ -46,7 +46,7 @@
                                      ra.get_ssl_client_cert_pw_file_provider(),
                                      ra.get_ssl_server_trust_file_provider()])
         self.client_ctx.log_msg_func = self.log_message_func
-        self.client_ctx.notify_func = lambda err: mutter("Error: %s" % err)
+        #self.client_ctx.notify_func = lambda err: mutter("Error: %s" % err)
 
     def log_message_func(self, items):
         return self.next_message




More information about the bazaar-commits mailing list