Bring back patch-lib_silcclient_client_c, which was lost in a previous

commit.  This fixes a bug where the client won't start if the user has
an empty gecos field.

From brad, ok ckeuthe.
This commit is contained in:
deanna 2007-03-17 03:13:41 +00:00
parent c78d1ebc6f
commit 52e75e93f5
2 changed files with 14 additions and 1 deletions

View File

@ -1,10 +1,11 @@
# $OpenBSD: Makefile,v 1.36 2006/10/03 18:34:50 brad Exp $
# $OpenBSD: Makefile,v 1.37 2007/03/17 03:13:41 deanna Exp $
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
COMMENT= "Secure Internet Live Conferencing (SILC) client"
DISTNAME= silc-client-1.0.3
PKGNAME= ${DISTNAME}p0
CATEGORIES= net
HOMEPAGE= http://www.silcnet.org/

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-lib_silcclient_client_c,v 1.3 2007/03/17 03:13:41 deanna Exp $
--- lib/silcclient/client.c.orig Thu Mar 15 16:56:54 2007
+++ lib/silcclient/client.c Thu Mar 15 16:57:19 2007
@@ -137,7 +137,7 @@ bool silc_client_init(SilcClient client)
SILC_LOG_ERROR(("Malformed hostname '%s'", client->hostname));
return FALSE;
}
- if (!silc_utf8_valid(client->realname, strlen(client->realname))) {
+ if ((*client->realname != '\0') && (!silc_utf8_valid(client->realname, strlen(client->realname)))) {
SILC_LOG_ERROR(("Malformed realname '%s'", client->realname));
return FALSE;
}