summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/kadmin/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/kadmin/load.c')
-rw-r--r--crypto/heimdal/kadmin/load.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/crypto/heimdal/kadmin/load.c b/crypto/heimdal/kadmin/load.c
index ebeee6c..3635023 100644
--- a/crypto/heimdal/kadmin/load.c
+++ b/crypto/heimdal/kadmin/load.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997-2001 Kungliga Tekniska Högskolan
+ * Copyright (c) 1997-2002 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -34,7 +34,7 @@
#include "kadmin_locl.h"
#include <kadm5/private.h>
-RCSID("$Id: load.c,v 1.43 2001/08/10 13:52:22 joda Exp $");
+RCSID("$Id: load.c,v 1.44 2002/09/04 20:44:35 joda Exp $");
struct entry {
char *principal;
@@ -288,8 +288,10 @@ parse_generation(char *str, GENERATION **gen)
char *p;
int v;
- if(strcmp(str, "-") == 0 || *str == '\0')
+ if(strcmp(str, "-") == 0 || *str == '\0') {
*gen = NULL;
+ return 0;
+ }
*gen = calloc(1, sizeof(**gen));
p = strsep(&str, ":");
OpenPOWER on IntegriCloud