diff lib/misc.c @ 451:83cfffb2878a

2004-3-26 Brian Masney <masneyb@gftp.org> * lib/ftps.c lib/gftp.h lib/rfc959.c - when reestablishing a connection to a FTPS host, make sure the initial commands are sent over in plaintext * lib/protocols.c - make sure the port is displayed to the user in the proper byte order when getaddrinfo() is not included on the system * lib/misc.c (gftp_copy_request) - make sure req->init is not NULL before attempting to initialize the new request structure. This fixes a segfault that happened when viewing/editing a local file (from Chelban Vasile <mail4509@pochtamt.ru>) * docs/website/generate-gftp-website.pl - updated the STABLE_I386DEB filename * docs/website/index.html.in - updated the main website * docs/website/announce.txt - announcement for the 2.0.17 release
author masneyb
date Fri, 26 Mar 2004 21:03:51 +0000
parents 1d45758e5cf5
children 075f89b4395c
line wrap: on
line diff
--- a/lib/misc.c	Wed Mar 24 11:06:41 2004 +0000
+++ b/lib/misc.c	Fri Mar 26 21:03:51 2004 +0000
@@ -615,7 +615,7 @@
                            req->local_options_vars,
                            req->num_local_options_vars);
 
-  if (req->init (newreq) < 0)
+  if (req->init != NULL && req->init (newreq) < 0)
     {
       gftp_request_destroy (newreq, 1);
       return (NULL);