diff options
author | Ondrej Kos <okos@redhat.com> | 2013-03-04 10:03:54 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-03-04 14:44:59 +0100 |
commit | 67dac0a65e9322771d853ee0914c41c30a1c4432 (patch) | |
tree | bb71bb146d76ccdfffcd2709fffa25a694bb012a | |
parent | 270378e688f30413d75eaa9b5170f4ed8676f1cf (diff) | |
download | sssd-67dac0a65e9322771d853ee0914c41c30a1c4432.tar.gz sssd-67dac0a65e9322771d853ee0914c41c30a1c4432.tar.bz2 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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index 9182f238..42dffe7b 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; } |