summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Kos <okos@redhat.com>2013-03-04 10:03:54 +0100
committerJakub Hrozek <jhrozek@redhat.com>2013-03-04 14:44:59 +0100
commit67dac0a65e9322771d853ee0914c41c30a1c4432 (patch)
treebb71bb146d76ccdfffcd2709fffa25a694bb012a
parent270378e688f30413d75eaa9b5170f4ed8676f1cf (diff)
downloadsssd-67dac0a65e9322771d853ee0914c41c30a1c4432.tar.gz
sssd-67dac0a65e9322771d853ee0914c41c30a1c4432.tar.xz
sssd-67dac0a65e9322771d853ee0914c41c30a1c4432.zip
krb5_child: fix value type and initialization
ret was defined as integer, instead of errno_t, and was uninitialized
-rw-r--r--src/providers/krb5/krb5_child.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index 9182f2383..42dffe7b8 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -1899,7 +1899,7 @@ int main(int argc, const char *argv[])
poptContext pc;
int debug_fd = -1;
int status;
- int ret;
+ errno_t ret;
struct poptOption long_options[] = {
POPT_AUTOHELP
@@ -1941,6 +1941,7 @@ int main(int argc, const char *argv[])
debug_prg_name = talloc_asprintf(kr, "[sssd[krb5_child[%d]]]", getpid());
if (!debug_prg_name) {
DEBUG(SSSDBG_CRIT_FAILURE, ("talloc_asprintf failed.\n"));
+ ret = ENOMEM;
goto done;
}