summaryrefslogtreecommitdiff
path: root/src/module_struct.c
diff options
context:
space:
mode:
authorJakub Sławiński2006-02-05 15:14:03 +0100
committerJoshua Judson Rosen2014-07-17 21:15:02 +0200
commitb457fec36399c1f7de093d5e92bb4fa453b79c86 (patch)
tree2084c9a78d40213015e6f10e3e9e01bc4c0c51f1 /src/module_struct.c
parentUpdate copyright statements. (diff)
downloadapf-b457fec36399c1f7de093d5e92bb4fa453b79c86.tar.gz
v0.8
- Fixed: infinite loop after buffering message - Fixed: corrupt packets after closing connections in the stopped state - Fixed: bug in mapping user numbers between afclient and afserver - Fixed: premature close of the service connection - Fixed: invalid buffering when the connection is closing - Added: Multiple tunnels in one afclient<->afserver connection
Diffstat (limited to 'src/module_struct.c')
-rw-r--r--src/module_struct.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/module_struct.c b/src/module_struct.c
index aff8ed9..c7d8c0f 100644
--- a/src/module_struct.c
+++ b/src/module_struct.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <dlfcn.h>
+#include <assert.h>
/*
* Function name: Module_new
@@ -38,6 +39,7 @@ Module*
Module_new()
{
Module* tmp = calloc(1, sizeof(Module));
+ assert(tmp != NULL);
if (tmp == NULL) {
return NULL;
}
@@ -53,9 +55,11 @@ Module_new()
void
Module_free(Module** m)
{
+ assert(m != NULL);
if (m == NULL) {
return;
}
+ assert((*m) != NULL);
if ((*m) == NULL) {
return;
}
@@ -78,6 +82,7 @@ Module_free(Module** m)
void
Module_set_fileName(Module* m, char* fileName)
{
+ assert(m != NULL);
if (m == NULL) {
return;
}
@@ -94,6 +99,7 @@ Module_set_fileName(Module* m, char* fileName)
char*
Module_get_fileName(Module* m)
{
+ assert(m != NULL);
if (m == NULL) {
return NULL;
}
@@ -160,6 +166,7 @@ Module_releaseModule(Module* m)
int
Module_isModuleLoaded(Module* m)
{
+ assert(m != NULL);
if (m == NULL) {
return 0;
}