[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib/src
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib/src |
Date: |
Thu, 30 Sep 2004 15:51:41 +0200 |
Update of /home/cvs/gsasl/lib/src
In directory dopio:/tmp/cvs-serv25378
Modified Files:
property.c
Log Message:
(gsasl_property_fast, gsasl_property_fast_global): Fix crashes on NULL
input.
--- /home/cvs/gsasl/lib/src/property.c 2004/09/23 00:49:14 1.8
+++ /home/cvs/gsasl/lib/src/property.c 2004/09/30 13:51:41 1.9
@@ -26,6 +26,9 @@
{
char **p = NULL;
+ if (!sctx)
+ return NULL;
+
switch (prop)
{
case GSASL_CLIENT_ANONYMOUS:
@@ -69,6 +72,9 @@
{
char **p = NULL;
+ if (!ctx)
+ return NULL;
+
switch (prop)
{
case GSASL_CLIENT_ANONYMOUS:
@@ -198,7 +204,7 @@
{
char **p = map_global (ctx, prop);
- if (p)
+ if (p && *p)
return *p;
return NULL;
@@ -224,7 +230,7 @@
{
char **p = map (sctx, prop);
- if (p)
+ if (p && *p)
return *p;
return gsasl_property_fast_global (sctx->ctx, prop);
- CVS gsasl/lib/src, (continued)
- CVS gsasl/lib/src, gsasl-commit, 2004/09/23
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/24
- CVS gsasl/lib/src, gsasl-commit, 2004/09/26
- CVS gsasl/lib/src, gsasl-commit, 2004/09/30
- CVS gsasl/lib/src,
gsasl-commit <=
- CVS gsasl/lib/src, gsasl-commit, 2004/09/30
- CVS gsasl/lib/src, gsasl-commit, 2004/09/30
- CVS gsasl/lib/src, gsasl-commit, 2004/09/30
- CVS gsasl/lib/src, gsasl-commit, 2004/09/30
- CVS gsasl/lib/src, gsasl-commit, 2004/09/30