[Top][All Lists]

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

[Gnu-arch-users] [BUG] pfs-dav fails to initialize neon

From: Johannes Berg
Subject: [Gnu-arch-users] [BUG] pfs-dav fails to initialize neon
Date: Thu, 01 Apr 2004 02:00:30 +0200

On windows, libneon has to be initialized specially, but tla never calls
its init function, which it should anyway if ssl support was ever
compiled in. Here's a patch to fix it:

--- orig/libarch/pfs-dav.c
+++ mod/libarch/pfs-dav.c
@@ -28,6 +28,7 @@
 #include "tla/libneon/ne_props.h"
 #include "tla/libneon/ne_uri.h"
 #include "tla/libneon/ne_redirect.h"
+#include "tla/libneon/ne_socket.h"
@@ -145,6 +146,11 @@
   t_uchar * proxy_port;
   struct authinfo * auth = 0;
   int proxy_port_num;
+  /* ne_sock_init() is idempotent, so just init always */
+  if (ne_sock_init ()) {
+    panic ("arch_pfs_dav_connect: ne_sock_init() failed.");
+  }
   answer = (struct arch_pfs_dav_session *)lim_malloc (0, sizeof (*answer));
   mem_set0 ((t_uchar *)answer, sizeof (*answer));

Key-ID: 9AB78CA5 Johannes Martin Berg <address@hidden>

Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]