Permalink
Browse files

Imported Upstream version 3.6.2005-01-03

  • Loading branch information...
1 parent 1378d50 commit 949af905a4292b298de57101efac3be38cda3b64 @leggewie leggewie committed Sep 14, 2010
View
@@ -1,11 +1,11 @@
-# $Id: Makefile,v 1.56 2004/08/30 14:06:42 keil Exp $
+# $Id: Makefile,v 1.57 2004/12/13 22:06:49 keil Exp $
#
# Toplevel Makefile for isdn4k-utils
#
.EXPORT_ALL_VARIABLES:
-export I4LVERSION = 3.5
+export I4LVERSION = 3.6
all: do-it-all
View
@@ -96,7 +96,7 @@ lib_LTLIBRARIES = libcapi20.la
lib_LIBRARIES = libcapi20dyn.a
libcapi20_la_SOURCES = capi20.c capifunc.c convert.c
-libcapi20_la_LDFLAGS = -version-info 2:8:0
+libcapi20_la_LDFLAGS = -version-info 2:9:0
libcapi20_la_CFLAGS = -fno-strict-aliasing
libcapi20dyn_a_SOURCES = capidyn.c
View
@@ -1,7 +1,10 @@
/*
- * $Id: capi20.c,v 1.23 2004/10/06 15:24:42 calle Exp $
+ * $Id: capi20.c,v 1.24 2004/12/15 14:27:54 calle Exp $
*
* $Log: capi20.c,v $
+ * Revision 1.24 2004/12/15 14:27:54 calle
+ * Bugfix: returncode of get_buffer() is now checked.
+ *
* Revision 1.23 2004/10/06 15:24:42 calle
* - "SendingComplete"-Patch reverted => 2.0.8 was not binaer compartible
* - Bugfix: capi20_register() with MaxB3Connection == 0 results in a
@@ -209,7 +212,7 @@ static struct applinfo *alloc_buffers(unsigned MaxB3Connection,
unsigned MaxSizeB3)
{
struct applinfo *ap;
- unsigned nbufs = 1 + MaxB3Connection * (MaxB3Blks + 1);
+ unsigned nbufs = 2 + MaxB3Connection * (MaxB3Blks + 1);
size_t recvbuffersize = 128 + MaxSizeB3;
unsigned i;
size_t size;
@@ -488,7 +491,8 @@ capi20_get_message (unsigned ApplID, unsigned char **Buf)
fd = applid2fd(ApplID);
- *Buf = rcvbuf = get_buffer(ApplID, &bufsiz, &offset);
+ if ((*Buf = rcvbuf = get_buffer(ApplID, &bufsiz, &offset)) == 0)
+ return CapiMsgOSResourceError;
if ((rc = read(fd, rcvbuf, bufsiz)) > 0) {
CAPIMSG_SETAPPID(rcvbuf, ApplID); // workaround for old driver
Oops, something went wrong.

0 comments on commit 949af90

Please sign in to comment.