[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU shishi branch, master, updated. shishi-1-0-1-12-g182ac73
From: |
Simon Josefsson |
Subject: |
[SCM] GNU shishi branch, master, updated. shishi-1-0-1-12-g182ac73 |
Date: |
Wed, 15 Aug 2012 17:17:13 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU shishi".
http://git.savannah.gnu.org/cgit/shishi.git/commit/?id=182ac738567099e5d13036f4db3aeb39a569cca4
The branch, master has been updated
via 182ac738567099e5d13036f4db3aeb39a569cca4 (commit)
from b70ed1b1ff83365c51aeb6c3323fafa3c8221675 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 182ac738567099e5d13036f4db3aeb39a569cca4
Author: Simon Josefsson <address@hidden>
Date: Wed Aug 15 19:16:48 2012 +0200
Improve error messages, suggested by Mats.
-----------------------------------------------------------------------
Summary of changes:
lib/principal.c | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/lib/principal.c b/lib/principal.c
index 80e6934..d84387e 100644
--- a/lib/principal.c
+++ b/lib/principal.c
@@ -119,7 +119,10 @@ shishi_parse_name (Shishi * handle, const char *name,
int escaped = 0;
if (!name)
- return SHISHI_INVALID_PRINCIPAL_NAME;
+ {
+ shishi_error_printf (handle, "Name is NULL\n");
+ return SHISHI_INVALID_PRINCIPAL_NAME;
+ }
while (*p && (*p != '@' || escaped))
if (escaped)
@@ -128,7 +131,12 @@ shishi_parse_name (Shishi * handle, const char *name,
escaped = 1;
if (escaped)
- return SHISHI_INVALID_PRINCIPAL_NAME;
+ {
+ shishi_error_printf (handle,
+ "Principal ended with escape character: %s\n",
+ name);
+ return SHISHI_INVALID_PRINCIPAL_NAME;
+ }
if (principal)
{
@@ -147,7 +155,12 @@ shishi_parse_name (Shishi * handle, const char *name,
escaped = 1;
if (escaped)
- return SHISHI_INVALID_PRINCIPAL_NAME;
+ {
+ shishi_error_printf (handle,
+ "Realm ended with escape character: %s\n",
+ name);
+ return SHISHI_INVALID_PRINCIPAL_NAME;
+ }
if (realm)
*realm = xstrdup (p);
hooks/post-receive
--
GNU shishi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU shishi branch, master, updated. shishi-1-0-1-12-g182ac73,
Simon Josefsson <=