[Pkg-silc-commits] r262 - in /silc-server/branches/upstream/current: ./ apps/ apps/silcd/ doc/ includes/ lib/ lib/contrib/ lib/silcapputil/ lib/silcasn1/ lib/silccore/ lib/silccrypt/ lib/silchttp/ lib/silcmath/ lib/silcske/ lib/silcskr/ lib/silcutil/ lib/silcutil/unix/
lunar at users.alioth.debian.org
lunar at users.alioth.debian.org
Mon Apr 14 18:57:29 UTC 2008
Author: lunar
Date: Mon Apr 14 18:57:28 2008
New Revision: 262
URL: http://svn.debian.org/wsvn/pkg-silc/?sc=1&rev=262
Log:
[svn-upgrade] Integrating new upstream version, silc-server (1.1.3)
Added:
silc-server/branches/upstream/current/ChangeLog
Removed:
silc-server/branches/upstream/current/CHANGES
Modified:
silc-server/branches/upstream/current/Makefile.am
silc-server/branches/upstream/current/Makefile.in
silc-server/branches/upstream/current/apps/Makefile.am
silc-server/branches/upstream/current/apps/Makefile.in
silc-server/branches/upstream/current/apps/silcd/command.c
silc-server/branches/upstream/current/apps/silcd/server.c
silc-server/branches/upstream/current/apps/silcd/server_util.c
silc-server/branches/upstream/current/apps/silcd/serverconfig.c
silc-server/branches/upstream/current/apps/silcd/silc-server.spec
silc-server/branches/upstream/current/configure
silc-server/branches/upstream/current/configure.ac
silc-server/branches/upstream/current/doc/Makefile.am
silc-server/branches/upstream/current/doc/Makefile.in
silc-server/branches/upstream/current/includes/Makefile.am
silc-server/branches/upstream/current/includes/Makefile.in
silc-server/branches/upstream/current/includes/silcdistdefs.h
silc-server/branches/upstream/current/lib/Makefile.am
silc-server/branches/upstream/current/lib/Makefile.in
silc-server/branches/upstream/current/lib/contrib/Makefile.am
silc-server/branches/upstream/current/lib/contrib/Makefile.in
silc-server/branches/upstream/current/lib/silcapputil/Makefile.am
silc-server/branches/upstream/current/lib/silcapputil/Makefile.in
silc-server/branches/upstream/current/lib/silcapputil/silcidcache.c
silc-server/branches/upstream/current/lib/silcasn1/Makefile.am
silc-server/branches/upstream/current/lib/silcasn1/Makefile.in
silc-server/branches/upstream/current/lib/silccore/Makefile.am
silc-server/branches/upstream/current/lib/silccore/Makefile.in
silc-server/branches/upstream/current/lib/silccore/silcpacket.c
silc-server/branches/upstream/current/lib/silccrypt/Makefile.am
silc-server/branches/upstream/current/lib/silccrypt/Makefile.in
silc-server/branches/upstream/current/lib/silchttp/Makefile.am
silc-server/branches/upstream/current/lib/silchttp/Makefile.in
silc-server/branches/upstream/current/lib/silcmath/Makefile.am
silc-server/branches/upstream/current/lib/silcmath/Makefile.in
silc-server/branches/upstream/current/lib/silcske/Makefile.am
silc-server/branches/upstream/current/lib/silcske/Makefile.in
silc-server/branches/upstream/current/lib/silcskr/Makefile.am
silc-server/branches/upstream/current/lib/silcskr/Makefile.in
silc-server/branches/upstream/current/lib/silcskr/silcskr.c
silc-server/branches/upstream/current/lib/silcutil/Makefile.am
silc-server/branches/upstream/current/lib/silcutil/Makefile.in
silc-server/branches/upstream/current/lib/silcutil/silcfdstream.c
silc-server/branches/upstream/current/lib/silcutil/silcsocketstream.c
silc-server/branches/upstream/current/lib/silcutil/silcsocketstream_i.h
silc-server/branches/upstream/current/lib/silcutil/unix/silcunixschedule.c
silc-server/branches/upstream/current/lib/silcutil/unix/silcunixsocketstream.c
Added: silc-server/branches/upstream/current/ChangeLog
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/ChangeLog?rev=262&op=file
==============================================================================
--- silc-server/branches/upstream/current/ChangeLog (added)
+++ silc-server/branches/upstream/current/ChangeLog Mon Apr 14 18:57:28 2008
@@ -1,0 +1,88 @@
+commit 02a0c7779f104ac4ed4319cff5a479a6e28bb3ff
+Author: Pekka Riikonen <priikone at silcnet.org>
+Date: Sat Apr 12 13:51:42 2008 +0300
+
+ Check for valid packet stream when counting number of connections in silcd.
+
+commit 929798ea2747657e5834da459d4abb9bb41d71b0
+Author: Pekka Riikonen <priikone at silcnet.org>
+Date: Sat Apr 12 13:51:06 2008 +0300
+
+ SILC_IS_FD_STREAM and SILC_IS_SOCKET_STREAM now checks for NULL stream.
+
+commit 7f2e2c591c48f80822808759d12958769a323536
+Author: Pekka Riikonen <priikone at silcnet.org>
+Date: Sat Apr 12 13:50:39 2008 +0300
+
+ Fixed silc_skr_init to not fail if threads support are not compiled in.
+
+commit 01ad96cb7e509ac24c73220a2fa7c43fdd6cb70c
+Author: Pekka Riikonen <priikone at silcnet.org>
+Date: Sat Apr 12 13:50:09 2008 +0300
+
+ Removed wrong SILC_LOG_ERROR and assert check from silc_idcache_add.
+
+ In some cases it is not fatal error to attempt to add entry that already
+ exists. Removed the assert and changed the error to debug message.
+
+commit 5749ebf8cfa5679321580dc261bfd35c0ba693a4
+Author: Pekka Riikonen <priikone at silcnet.org>
+Date: Thu Apr 10 18:04:11 2008 +0300
+
+ Compute packet sums using sha512sum.
+
+commit 2dc72c63d6cc4e4f2addb99783554707a3488b6d
+Author: Pekka Riikonen <priikone at silcnet.org>
+Date: Thu Apr 10 18:03:46 2008 +0300
+
+ Mark scheduler task unscheduled after silc_schedule_unset_listen_fd.
+
+ Affects epoll() version of schduler. If it isn't marked unscheduled
+ next time fd's events are changed they expect the fd to be in epoll()
+ which they are not. Setting unscheduled will add them again to epoll().
+
+commit c724c52cf360b74e42a7f2c7450a25bd1fcb220d
+Author: Pekka Riikonen <priikone at silcnet.org>
+Date: Thu Apr 10 18:01:35 2008 +0300
+
+ Fixed QoS data limit handling in socket stream when reading data.
+
+commit 8b11d3c1627f1dc3c7966bb51901bcdcf1f8a9fb
+Author: Pekka Riikonen <priikone at silcnet.org>
+Date: Thu Apr 10 17:59:59 2008 +0300
+
+ Fixed packet stream destroy crashes when closing connections.
+
+ Take a reference of the packet stream and then destroy it. The final
+ reference is freed in the timeout callback. Any operation in the mean
+ time will detect the stream is destroyed and won't do anything.
+
+commit 9b290d7cd0ad262dfc23ef2e5673a2e088d1619e
+Author: Pekka Riikonen <priikone at silcnet.org>
+Date: Tue Apr 8 08:01:19 2008 +0300
+
+ Accept 0600 and 0640 for server private key permissions.
+
+commit bc5293b5663c03847ab2400a69dbbeb7f69d439f
+Author: Pekka Riikonen <priikone at silcnet.org>
+Date: Tue Apr 8 08:00:40 2008 +0300
+
+ Fixed busy-loop in WATCH command when adding public keys.
+
+ If the public key decoding failed the command ended up
+ decoding and failing the same public key for ever.
+
+ apps/silcd/command.c | 4 +++-
+ apps/silcd/server.c | 13 ++++++++++++-
+ apps/silcd/server_util.c | 6 +++---
+ apps/silcd/serverconfig.c | 5 +++--
+ distdir/post-dist | 4 ++--
+ lib/silcapputil/silcidcache.c | 3 +--
+ lib/silccore/silcpacket.c | 6 +++---
+ lib/silcskr/silcskr.c | 3 +--
+ lib/silcutil/silcfdstream.c | 4 ++--
+ lib/silcutil/silcsocketstream.c | 6 ++++--
+ lib/silcutil/silcsocketstream_i.h | 6 +++---
+ lib/silcutil/unix/silcunixschedule.c | 3 ++-
+ lib/silcutil/unix/silcunixsocketstream.c | 8 +++++---
+ 13 files changed, 44 insertions(+), 27 deletions(-)
Modified: silc-server/branches/upstream/current/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/Makefile.am (original)
+++ silc-server/branches/upstream/current/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./Makefile.ad file in the source tree.
# Source: ./Makefile.ad
-# Generated: Thu Mar 20 08:47:39 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
@@ -27,7 +27,7 @@
SUBDIRS = @LIBSUBDIR@ apps includes doc
-EXTRA_DIST = silcdefs.h.in libtoolfix CHANGES CREDITS
+EXTRA_DIST = silcdefs.h.in libtoolfix CREDITS
include $(top_srcdir)/Makefile.defines.in
Modified: silc-server/branches/upstream/current/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/Makefile.in (original)
+++ silc-server/branches/upstream/current/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./Makefile.ad file in the source tree.
# Source: ./Makefile.ad
-# Generated: Thu Mar 20 08:47:39 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
@@ -98,8 +98,9 @@
$(srcdir)/Makefile.defines.in \
$(srcdir)/Makefile.defines_int.in $(srcdir)/Makefile.in \
$(srcdir)/silcdefs.h.in $(top_srcdir)/Makefile.defines.in \
- $(top_srcdir)/configure COPYING INSTALL TODO config.guess \
- config.sub depcomp install-sh ltmain.sh missing mkinstalldirs
+ $(top_srcdir)/configure COPYING ChangeLog INSTALL TODO \
+ config.guess config.sub depcomp install-sh ltmain.sh missing \
+ mkinstalldirs
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
@@ -289,7 +290,7 @@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
SUBDIRS = @LIBSUBDIR@ apps includes doc
-EXTRA_DIST = silcdefs.h.in libtoolfix CHANGES CREDITS
+EXTRA_DIST = silcdefs.h.in libtoolfix CREDITS
#
# INCLUDE defines
Modified: silc-server/branches/upstream/current/apps/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/apps/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/apps/Makefile.am (original)
+++ silc-server/branches/upstream/current/apps/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./apps/Makefile.ad file in the source tree.
# Source: ./apps/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:36 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/apps/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/apps/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/apps/Makefile.in (original)
+++ silc-server/branches/upstream/current/apps/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./apps/Makefile.ad file in the source tree.
# Source: ./apps/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:36 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/apps/silcd/command.c
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/apps/silcd/command.c?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/apps/silcd/command.c (original)
+++ silc-server/branches/upstream/current/apps/silcd/command.c Mon Apr 14 18:57:28 2008
@@ -4368,8 +4368,10 @@
pk = silc_argument_get_next_arg(pkargs, &type, &pk_len);
while (pk) {
- if (!silc_public_key_payload_decode(pk, pk_len, &public_key))
+ if (!silc_public_key_payload_decode(pk, pk_len, &public_key)) {
+ pk = silc_argument_get_next_arg(pkargs, &type, &pk_len);
continue;
+ }
if (type == 0x03)
type = 0x00;
Modified: silc-server/branches/upstream/current/apps/silcd/server.c
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/apps/silcd/server.c?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/apps/silcd/server.c (original)
+++ silc-server/branches/upstream/current/apps/silcd/server.c Mon Apr 14 18:57:28 2008
@@ -268,6 +268,9 @@
SILC_LOG_ERROR(("Connection %s:%d [%s]: %s", ip, port,
SILC_CONNTYPE_STRING(idata->conn_type),
silc_packet_error_string(error)));
+
+ if (!silc_packet_stream_is_valid(stream))
+ return;
silc_schedule_task_add_timeout(server->schedule,
silc_server_packet_error_timeout,
@@ -2845,7 +2848,7 @@
SILC_TASK_CALLBACK(silc_server_close_connection_final)
{
- silc_packet_stream_destroy(context);
+ silc_packet_stream_unref(context);
}
/* Closes connection to socket connection */
@@ -2857,6 +2860,9 @@
char tmp[128];
const char *hostname;
SilcUInt16 port;
+
+ if (!silc_packet_stream_is_valid(sock))
+ return;
memset(tmp, 0, sizeof(tmp));
// silc_socket_get_error(sock, tmp, sizeof(tmp));
@@ -2872,6 +2878,11 @@
silc_server_connection_free(idata->sconn);
idata->sconn = NULL;
}
+
+ /* Take a reference and then destroy the stream. The last reference
+ is released later in a timeout callback. */
+ silc_packet_stream_ref(sock);
+ silc_packet_stream_destroy(sock);
/* Close connection with timeout */
server->stat.conn_num--;
Modified: silc-server/branches/upstream/current/apps/silcd/server_util.c
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/apps/silcd/server_util.c?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/apps/silcd/server_util.c (original)
+++ silc-server/branches/upstream/current/apps/silcd/server_util.c Mon Apr 14 18:57:28 2008
@@ -4,7 +4,7 @@
Author: Pekka Riikonen <priikone at silcnet.org>
- Copyright (C) 1997 - 2005, 2007 Pekka Riikonen
+ Copyright (C) 1997 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -997,7 +997,7 @@
silc_dlist_start(server->conns);
while ((conn = silc_dlist_get(server->conns))) {
- if (!conn->sock)
+ if (!conn->sock || !silc_packet_stream_is_valid(conn->sock))
continue;
silc_socket_stream_get_info(silc_packet_stream_get_stream(conn->sock),
NULL, NULL, &ipaddr, NULL);
@@ -1023,7 +1023,7 @@
silc_dlist_start(server->conns);
while ((conn = silc_dlist_get(server->conns))) {
- if (!conn->sock)
+ if (!conn->sock || !silc_packet_stream_is_valid(conn->sock))
continue;
idata = silc_packet_get_context(conn->sock);
silc_socket_stream_get_info(silc_packet_stream_get_stream(conn->sock),
Modified: silc-server/branches/upstream/current/apps/silcd/serverconfig.c
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/apps/silcd/serverconfig.c?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/apps/silcd/serverconfig.c (original)
+++ silc-server/branches/upstream/current/apps/silcd/serverconfig.c Mon Apr 14 18:57:28 2008
@@ -640,10 +640,11 @@
/* Check the private key file permissions. */
if ((stat(file_tmp, &st)) != -1) {
- if ((st.st_mode & 0777) != 0600) {
+ if (((st.st_mode & 0777) != 0600) &&
+ ((st.st_mode & 0777) != 0640)) {
SILC_SERVER_LOG_ERROR(("Wrong permissions in private key "
"file \"%s\". The permissions must be "
- "0600.", file_tmp));
+ "0600 or 0640.", file_tmp));
return SILC_CONFIG_ESILENT;
}
}
Modified: silc-server/branches/upstream/current/apps/silcd/silc-server.spec
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/apps/silcd/silc-server.spec?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/apps/silcd/silc-server.spec (original)
+++ silc-server/branches/upstream/current/apps/silcd/silc-server.spec Mon Apr 14 18:57:28 2008
@@ -1,6 +1,6 @@
Summary: SILC Server
Name: silc-server
-Version: 1.1.2
+Version: 1.1.3
Release: 0.fc8
License: GPL
Group: Applications/Communications
Modified: silc-server/branches/upstream/current/configure
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/configure?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/configure (original)
+++ silc-server/branches/upstream/current/configure Mon Apr 14 18:57:28 2008
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for Server 1.1.2.
+# Generated by GNU Autoconf 2.61 for Server 1.1.3.
#
# Report bugs to <silc-devel at lists.silcnet.org>.
#
@@ -728,8 +728,8 @@
# Identity of this package.
PACKAGE_NAME='Server'
PACKAGE_TARNAME='silc-server'
-PACKAGE_VERSION='1.1.2'
-PACKAGE_STRING='Server 1.1.2'
+PACKAGE_VERSION='1.1.3'
+PACKAGE_STRING='Server 1.1.3'
PACKAGE_BUGREPORT='silc-devel at lists.silcnet.org'
# Factoring default headers for most tests.
@@ -1474,7 +1474,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures Server 1.1.2 to adapt to many kinds of systems.
+\`configure' configures Server 1.1.3 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1545,7 +1545,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of Server 1.1.2:";;
+ short | recursive ) echo "Configuration of Server 1.1.3:";;
esac
cat <<\_ACEOF
@@ -1668,7 +1668,7 @@
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-Server configure 1.1.2
+Server configure 1.1.3
generated by GNU Autoconf 2.61
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1682,7 +1682,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by Server $as_me 1.1.2, which was
+It was created by Server $as_me 1.1.3, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ $0 $@
@@ -2498,7 +2498,7 @@
# Define the identity of the package.
PACKAGE='silc-server'
- VERSION='1.1.2'
+ VERSION='1.1.3'
cat >>confdefs.h <<_ACEOF
@@ -31728,7 +31728,7 @@
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by Server $as_me 1.1.2, which was
+This file was extended by Server $as_me 1.1.3, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -31781,7 +31781,7 @@
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-Server config.status 1.1.2
+Server config.status 1.1.3
configured by $0, generated by GNU Autoconf 2.61,
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Modified: silc-server/branches/upstream/current/configure.ac
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/configure.ac?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/configure.ac (original)
+++ silc-server/branches/upstream/current/configure.ac Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the configure.ad file in the source tree.
# Source: configure.ad
-# Generated: Thu Mar 20 08:47:41 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:36 EEST 2008 by priikone
# Distribution: Server
# License:
@@ -23,7 +23,7 @@
# GNU General Public License for more details.
#
-AC_INIT([Server], [1.1.2], [silc-devel at lists.silcnet.org], [silc-server])
+AC_INIT([Server], [1.1.3], [silc-devel at lists.silcnet.org], [silc-server])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE
AC_PREREQ(2.52)
Modified: silc-server/branches/upstream/current/doc/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/doc/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/doc/Makefile.am (original)
+++ silc-server/branches/upstream/current/doc/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./doc/Makefile.ad file in the source tree.
# Source: ./doc/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:36 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/doc/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/doc/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/doc/Makefile.in (original)
+++ silc-server/branches/upstream/current/doc/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./doc/Makefile.ad file in the source tree.
# Source: ./doc/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:36 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/includes/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/includes/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/includes/Makefile.am (original)
+++ silc-server/branches/upstream/current/includes/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./includes/Makefile.ad file in the source tree.
# Source: ./includes/Makefile.ad
-# Generated: Thu Mar 20 08:47:39 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/includes/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/includes/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/includes/Makefile.in (original)
+++ silc-server/branches/upstream/current/includes/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./includes/Makefile.ad file in the source tree.
# Source: ./includes/Makefile.ad
-# Generated: Thu Mar 20 08:47:39 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/includes/silcdistdefs.h
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/includes/silcdistdefs.h?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/includes/silcdistdefs.h (original)
+++ silc-server/branches/upstream/current/includes/silcdistdefs.h Mon Apr 14 18:57:28 2008
@@ -1,7 +1,7 @@
/*
Automatically generated by Autodist 1.4. Do not edit.
- Generated: Thu Mar 20 08:47:39 EET 2008 by priikone
+ Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
Distribution: Server
License:
*/
Modified: silc-server/branches/upstream/current/lib/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/Makefile.am (original)
+++ silc-server/branches/upstream/current/lib/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./lib/Makefile.ad file in the source tree.
# Source: ./lib/Makefile.ad
-# Generated: Thu Mar 20 08:47:39 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/Makefile.in (original)
+++ silc-server/branches/upstream/current/lib/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./lib/Makefile.ad file in the source tree.
# Source: ./lib/Makefile.ad
-# Generated: Thu Mar 20 08:47:39 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/contrib/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/contrib/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/contrib/Makefile.am (original)
+++ silc-server/branches/upstream/current/lib/contrib/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./lib/contrib/Makefile.ad file in the source tree.
# Source: ./lib/contrib/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/contrib/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/contrib/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/contrib/Makefile.in (original)
+++ silc-server/branches/upstream/current/lib/contrib/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./lib/contrib/Makefile.ad file in the source tree.
# Source: ./lib/contrib/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcapputil/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcapputil/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcapputil/Makefile.am (original)
+++ silc-server/branches/upstream/current/lib/silcapputil/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./lib/silcapputil/Makefile.ad file in the source tree.
# Source: ./lib/silcapputil/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcapputil/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcapputil/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcapputil/Makefile.in (original)
+++ silc-server/branches/upstream/current/lib/silcapputil/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./lib/silcapputil/Makefile.ad file in the source tree.
# Source: ./lib/silcapputil/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcapputil/silcidcache.c
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcapputil/silcidcache.c?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcapputil/silcidcache.c (original)
+++ silc-server/branches/upstream/current/lib/silcapputil/silcidcache.c Mon Apr 14 18:57:28 2008
@@ -142,9 +142,8 @@
if (id) {
/* See if this entry is added already to cache */
if (silc_idcache_find_by_id_one(cache, id, NULL)) {
- SILC_LOG_ERROR(("Attempted to add same ID twice to ID Cache, id %s",
+ SILC_LOG_DEBUG(("Attempted to add same ID twice to ID Cache, id %s",
silc_id_render(id, cache->id_type)));
- SILC_ASSERT(FALSE);
goto err;
}
}
Modified: silc-server/branches/upstream/current/lib/silcasn1/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcasn1/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcasn1/Makefile.am (original)
+++ silc-server/branches/upstream/current/lib/silcasn1/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./lib/silcasn1/Makefile.ad file in the source tree.
# Source: ./lib/silcasn1/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcasn1/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcasn1/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcasn1/Makefile.in (original)
+++ silc-server/branches/upstream/current/lib/silcasn1/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./lib/silcasn1/Makefile.ad file in the source tree.
# Source: ./lib/silcasn1/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silccore/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silccore/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silccore/Makefile.am (original)
+++ silc-server/branches/upstream/current/lib/silccore/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./lib/silccore/Makefile.ad file in the source tree.
# Source: ./lib/silccore/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:36 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silccore/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silccore/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silccore/Makefile.in (original)
+++ silc-server/branches/upstream/current/lib/silccore/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./lib/silccore/Makefile.ad file in the source tree.
# Source: ./lib/silccore/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:36 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silccore/silcpacket.c
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silccore/silcpacket.c?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silccore/silcpacket.c (original)
+++ silc-server/branches/upstream/current/lib/silccore/silcpacket.c Mon Apr 14 18:57:28 2008
@@ -4,7 +4,7 @@
Author: Pekka Riikonen <priikone at silcnet.org>
- Copyright (C) 1997 - 2007 Pekka Riikonen
+ Copyright (C) 1997 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -336,7 +336,6 @@
silc_mutex_unlock(ps->lock);
if (ret == -1) {
/* Cannot read now, do it later. */
- silc_buffer_pull(inbuf, silc_buffer_len(inbuf));
return FALSE;
}
@@ -394,7 +393,6 @@
if (ret == -1) {
/* Cannot read now, do it later. */
- silc_buffer_pull(inbuf, silc_buffer_len(inbuf));
return FALSE;
}
@@ -887,6 +885,8 @@
return;
if (silc_atomic_sub_int8(&stream->refcnt, 1) > 0) {
+ if (stream->destroyed)
+ return;
stream->destroyed = TRUE;
SILC_LOG_DEBUG(("Marking packet stream %p destroyed", stream));
Modified: silc-server/branches/upstream/current/lib/silccrypt/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silccrypt/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silccrypt/Makefile.am (original)
+++ silc-server/branches/upstream/current/lib/silccrypt/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./lib/silccrypt/Makefile.ad file in the source tree.
# Source: ./lib/silccrypt/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silccrypt/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silccrypt/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silccrypt/Makefile.in (original)
+++ silc-server/branches/upstream/current/lib/silccrypt/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./lib/silccrypt/Makefile.ad file in the source tree.
# Source: ./lib/silccrypt/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silchttp/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silchttp/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silchttp/Makefile.am (original)
+++ silc-server/branches/upstream/current/lib/silchttp/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./lib/silchttp/Makefile.ad file in the source tree.
# Source: ./lib/silchttp/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:36 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silchttp/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silchttp/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silchttp/Makefile.in (original)
+++ silc-server/branches/upstream/current/lib/silchttp/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./lib/silchttp/Makefile.ad file in the source tree.
# Source: ./lib/silchttp/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:36 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcmath/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcmath/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcmath/Makefile.am (original)
+++ silc-server/branches/upstream/current/lib/silcmath/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./lib/silcmath/Makefile.ad file in the source tree.
# Source: ./lib/silcmath/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcmath/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcmath/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcmath/Makefile.in (original)
+++ silc-server/branches/upstream/current/lib/silcmath/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./lib/silcmath/Makefile.ad file in the source tree.
# Source: ./lib/silcmath/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcske/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcske/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcske/Makefile.am (original)
+++ silc-server/branches/upstream/current/lib/silcske/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./lib/silcske/Makefile.ad file in the source tree.
# Source: ./lib/silcske/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcske/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcske/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcske/Makefile.in (original)
+++ silc-server/branches/upstream/current/lib/silcske/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./lib/silcske/Makefile.ad file in the source tree.
# Source: ./lib/silcske/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcskr/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcskr/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcskr/Makefile.am (original)
+++ silc-server/branches/upstream/current/lib/silcskr/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./lib/silcskr/Makefile.ad file in the source tree.
# Source: ./lib/silcskr/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcskr/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcskr/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcskr/Makefile.in (original)
+++ silc-server/branches/upstream/current/lib/silcskr/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./lib/silcskr/Makefile.ad file in the source tree.
# Source: ./lib/silcskr/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:35 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcskr/silcskr.c
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcskr/silcskr.c?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcskr/silcskr.c (original)
+++ silc-server/branches/upstream/current/lib/silcskr/silcskr.c Mon Apr 14 18:57:28 2008
@@ -632,8 +632,7 @@
SilcBool silc_skr_init(SilcSKR skr)
{
- if (!silc_mutex_alloc(&skr->lock))
- return FALSE;
+ silc_mutex_alloc(&skr->lock);
skr->keys = silc_hash_table_alloc(0, silc_skr_hash, NULL,
silc_skr_compare, NULL,
Modified: silc-server/branches/upstream/current/lib/silcutil/Makefile.am
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcutil/Makefile.am?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcutil/Makefile.am (original)
+++ silc-server/branches/upstream/current/lib/silcutil/Makefile.am Mon Apr 14 18:57:28 2008
@@ -2,7 +2,7 @@
# To make changes edit the ./lib/silcutil/Makefile.ad file in the source tree.
# Source: ./lib/silcutil/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:36 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcutil/Makefile.in
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcutil/Makefile.in?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcutil/Makefile.in (original)
+++ silc-server/branches/upstream/current/lib/silcutil/Makefile.in Mon Apr 14 18:57:28 2008
@@ -18,7 +18,7 @@
# To make changes edit the ./lib/silcutil/Makefile.ad file in the source tree.
# Source: ./lib/silcutil/Makefile.ad
-# Generated: Thu Mar 20 08:47:40 EET 2008 by priikone
+# Generated: Sat Apr 12 18:52:36 EEST 2008 by priikone
# Distribution: Server
# License:
Modified: silc-server/branches/upstream/current/lib/silcutil/silcfdstream.c
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcutil/silcfdstream.c?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcutil/silcfdstream.c (original)
+++ silc-server/branches/upstream/current/lib/silcutil/silcfdstream.c Mon Apr 14 18:57:28 2008
@@ -4,7 +4,7 @@
Author: Pekka Riikonen <priikone at silcnet.org>
- Copyright (C) 2005 - 2007 Pekka Riikonen
+ Copyright (C) 2005 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@
/************************** Types and definitions ***************************/
-#define SILC_IS_FD_STREAM(s) (s->ops == &silc_fd_stream_ops)
+#define SILC_IS_FD_STREAM(s) (s && s->ops == &silc_fd_stream_ops)
const SilcStreamOps silc_fd_stream_ops;
Modified: silc-server/branches/upstream/current/lib/silcutil/silcsocketstream.c
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcutil/silcsocketstream.c?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcutil/silcsocketstream.c (original)
+++ silc-server/branches/upstream/current/lib/silcutil/silcsocketstream.c Mon Apr 14 18:57:28 2008
@@ -4,7 +4,7 @@
Author: Pekka Riikonen <priikone at silcnet.org>
- Copyright (C) 2005 - 2007 Pekka Riikonen
+ Copyright (C) 2005 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -350,6 +350,7 @@
!limit_sec && !limit_usec) {
silc_schedule_task_del_by_context(socket_stream->schedule,
socket_stream->qos);
+ silc_free(socket_stream->qos->buffer);
silc_free(socket_stream->qos);
socket_stream->qos = NULL;
return TRUE;
@@ -370,7 +371,8 @@
socket_stream->qos->cur_rate = 0;
socket_stream->qos->sock = socket_stream;
- socket_stream->qos->buffer = silc_malloc(read_limit_bytes);
+ socket_stream->qos->buffer = silc_realloc(socket_stream->qos->buffer,
+ read_limit_bytes);
if (!socket_stream->qos->buffer)
return FALSE;
Modified: silc-server/branches/upstream/current/lib/silcutil/silcsocketstream_i.h
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcutil/silcsocketstream_i.h?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcutil/silcsocketstream_i.h (original)
+++ silc-server/branches/upstream/current/lib/silcutil/silcsocketstream_i.h Mon Apr 14 18:57:28 2008
@@ -4,7 +4,7 @@
Author: Pekka Riikonen <priikone at silcnet.org>
- Copyright (C) 2005 - 2006 Pekka Riikonen
+ Copyright (C) 2005 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -56,8 +56,8 @@
unsigned int connected : 1; /* UDP connected state */
};
-#define SILC_IS_SOCKET_STREAM(s) (s->ops == &silc_socket_stream_ops)
-#define SILC_IS_SOCKET_STREAM_UDP(s) (s->ops == &silc_socket_udp_stream_ops)
+#define SILC_IS_SOCKET_STREAM(s) (s && s->ops == &silc_socket_stream_ops)
+#define SILC_IS_SOCKET_STREAM_UDP(s) (s && s->ops == &silc_socket_udp_stream_ops)
extern const SilcStreamOps silc_socket_stream_ops;
extern const SilcStreamOps silc_socket_udp_stream_ops;
Modified: silc-server/branches/upstream/current/lib/silcutil/unix/silcunixschedule.c
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcutil/unix/silcunixschedule.c?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcutil/unix/silcunixschedule.c (original)
+++ silc-server/branches/upstream/current/lib/silcutil/unix/silcunixschedule.c Mon Apr 14 18:57:28 2008
@@ -4,7 +4,7 @@
Author: Pekka Riikonen <priikone at silcnet.org>
- Copyright (C) 1998 - 2007 Pekka Riikonen
+ Copyright (C) 1998 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -288,6 +288,7 @@
SILC_LOG_DEBUG(("epoll_ctl (DEL): %s", strerror(errno)));
return FALSE;
}
+ task->scheduled = FALSE;
return TRUE;
}
Modified: silc-server/branches/upstream/current/lib/silcutil/unix/silcunixsocketstream.c
URL: http://svn.debian.org/wsvn/pkg-silc/silc-server/branches/upstream/current/lib/silcutil/unix/silcunixsocketstream.c?rev=262&op=diff
==============================================================================
--- silc-server/branches/upstream/current/lib/silcutil/unix/silcunixsocketstream.c (original)
+++ silc-server/branches/upstream/current/lib/silcutil/unix/silcunixsocketstream.c Mon Apr 14 18:57:28 2008
@@ -4,7 +4,7 @@
Author: Pekka Riikonen <priikone at silcnet.org>
- Copyright (C) 1997 - 2007 Pekka Riikonen
+ Copyright (C) 1997 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -106,8 +106,9 @@
/* If QoS was applied, return the data that was pending. */
if (sock->qos->applied && sock->qos->data_len) {
memcpy(buf, qosbuf, sock->qos->data_len);
+ len = sock->qos->data_len;
sock->qos->data_len = 0;
- return sock->qos->data_len;
+ return len;
}
/* If we have active QoS data pending, return with no data */
@@ -116,7 +117,8 @@
return -1;
}
- /* Read the data from the socket. Never read more than the max limit. */
+ /* Read the data from the socket. The qosbuf size is always the max
+ read limit size. */
len = (buf_len < sock->qos->read_limit_bytes ? buf_len :
sock->qos->read_limit_bytes);
len = read(sock->sock, qosbuf, len);
More information about the Pkg-silc-commits
mailing list