-#include "config.h"
+/*
+ * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
/* UNIX RFCNB (RFC1001/RFC1002) NetBIOS implementation
*
* Session Routines ...
*
* Copyright (C) Richard Sharpe 1996
- *
*/
/*
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "squid.h"
+
int RFCNB_errno = 0;
int RFCNB_saved_errno = 0;
#define RFCNB_ERRNO
#include "rfcnb/std-includes.h"
#include <netinet/tcp.h>
-#include "rfcnb/rfcnb.h"
-#include "rfcnb/rfcnb-priv.h"
#include "rfcnb/rfcnb-io.h"
+#include "rfcnb/rfcnb-priv.h"
#include "rfcnb/rfcnb-util.h"
+#include "rfcnb/rfcnb.h"
#if HAVE_STRING_H
#include <string.h>
con->errn = 0; /* no error yet */
con->timeout = 0; /* no timeout */
con->redirects = 0;
+ con->redirect_list = con->last_addr = NULL;
/* Resolve that name into an IP address */
Service_Address = Called_Name;
- if (strcmp(Called_Address, "") != 0) { /* If the Called Address = "" */
+ if (strlen(Called_Address) != 0) { /* If the Called Address = "" */
Service_Address = Called_Address;
}
if ((errno = RFCNB_Name_To_IP(Service_Address, &Dest_IP)) < 0) { /* Error */
/* No need to change RFCNB_errno as it was done by put_pkt ... */
+ RFCNB_Free_Pkt(pkt);
return (RFCNBE_Bad); /* Should be able to write that lot ... */
}
#ifdef RFCNB_DEBUG
fprintf(stderr, "Bad packet return in RFCNB_Recv... \n");
#endif
-
+ RFCNB_Free_Pkt(pkt);
return (RFCNBE_Bad);
}
{
return (RFCNB_errno);
}
+