diff options
author | m0gg | 2006-12-16 15:55:24 +0000 |
---|---|---|
committer | m0gg | 2006-12-16 15:55:24 +0000 |
commit | 00d74ec45b1c26ec2d8bd9f2a32df79873f4a24b (patch) | |
tree | 4a3f6df6a60ab77acd65e006830e8448a8185ecf /nanohttp/nanohttp-common.c | |
parent | a672c6bc27848baf467e4ac5a969709bb84201db (diff) | |
download | csoap-00d74ec45b1c26ec2d8bd9f2a32df79873f4a24b.tar.gz csoap-00d74ec45b1c26ec2d8bd9f2a32df79873f4a24b.tar.bz2 |
soap.udp socket errors fixed
Diffstat (limited to 'nanohttp/nanohttp-common.c')
-rw-r--r-- | nanohttp/nanohttp-common.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nanohttp/nanohttp-common.c b/nanohttp/nanohttp-common.c index a7f7f50..9b5015e 100644 --- a/nanohttp/nanohttp-common.c +++ b/nanohttp/nanohttp-common.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-common.c,v 1.36 2006/12/10 19:21:06 m0gg Exp $ +* $Id: nanohttp-common.c,v 1.37 2006/12/16 15:55:24 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -193,8 +193,11 @@ hpairnode_free(hpair_t * pair) if (pair == NULL) return; - free(pair->key); - free(pair->value); + if (pair->key) + free(pair->key); + + if (pair->value) + free(pair->value); free(pair); @@ -462,7 +465,7 @@ attachments_free(struct attachments_t *message) { struct part_t *tmp, *part; - if (message == NULL) + if (!message) return; part = message->parts; |