summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalter de Jong <walter@heiho.net>2013-03-22 22:54:00 +0100
committerWalter de Jong <walter@heiho.net>2013-03-22 22:54:00 +0100
commite1bc8e8314544a5affcad33d132352bd8d3d69f2 (patch)
treec6abcf054194b2300976fd82fa2578fcc91e7be1
parent09e617195b1015ade429a713f96129ec63352e06 (diff)
downloadpam_tacplus-e1bc8e8314544a5affcad33d132352bd8d3d69f2.tar.gz
pam_tacplus-e1bc8e8314544a5affcad33d132352bd8d3d69f2.zip
added two FIXME remarks
-rw-r--r--support.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/support.c b/support.c
index ad44829..dc7cea1 100644
--- a/support.c
+++ b/support.c
@@ -44,6 +44,9 @@ char *tac_prompt = NULL;
extern char *tac_login;
extern int tac_timeout;
+/*
+ FIXME using xcalloc() leaks memory for long-running programs that authenticate multiple times
+*/
#ifndef xcalloc
void *_xcalloc (size_t size) {
register void *val = calloc (1, size);
@@ -280,6 +283,9 @@ int _pam_parse (int argc, const char **argv) {
}
if (tac_srv_key_no == 0) {
+ /* FIXME this should really be NULL
+ but watch out with breaking other code
+ */
tac_srv_key[0] = "";
tac_srv_key_no++;
}