[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib/anonymous
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib/anonymous |
Date: |
Sat, 18 Sep 2004 18:11:21 +0200 |
Update of /home/cvs/gsasl/lib/anonymous
In directory dopio:/tmp/cvs-serv30980
Modified Files:
anonymous.c
Log Message:
Cleanup.
--- /home/cvs/gsasl/lib/anonymous/anonymous.c 2004/09/18 00:58:35 1.5
+++ /home/cvs/gsasl/lib/anonymous/anonymous.c 2004/09/18 16:11:21 1.6
@@ -27,13 +27,8 @@
int
_gsasl_anonymous_client_start (Gsasl_session_ctx * sctx, void **mech_data)
{
- Gsasl_ctx *ctx;
int *step;
- ctx = gsasl_client_ctx_get (sctx);
- if (ctx == NULL)
- return GSASL_CANNOT_GET_CTX;
-
step = (int *) malloc (sizeof (*step));
if (step == NULL)
return GSASL_MALLOC_ERROR;
@@ -62,6 +57,8 @@
return GSASL_NO_ANONYMOUS_TOKEN;
*output = strdup (p);
+ if (!*output)
+ return GSASL_MALLOC_ERROR;
*output_len = strlen (p);
(*step)++;
@@ -93,13 +90,8 @@
int
_gsasl_anonymous_server_start (Gsasl_session_ctx * sctx, void **mech_data)
{
- Gsasl_ctx *ctx;
struct _Gsasl_anonymous_server_state *state;
- ctx = gsasl_server_ctx_get (sctx);
- if (ctx == NULL)
- return GSASL_CANNOT_GET_CTX;
-
state = malloc (sizeof (*state));
if (state == NULL)
return GSASL_MALLOC_ERROR;
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/17
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/17
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/18
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/18
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/18
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/18
- CVS gsasl/lib/anonymous,
gsasl-commit <=
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/18
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/23
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/23
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/23
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/23
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/24
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/24
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/26
- CVS gsasl/lib/anonymous, gsasl-commit, 2004/09/30