git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee5d98f
)
Copy credential name for 'self' superuser entry. Avoids access to garbage
author
Zdeněk Salvet
<salvet@ics.muni.cz>
Thu, 24 Jul 2008 14:09:59 +0000
(14:09 +0000)
committer
Zdeněk Salvet
<salvet@ics.muni.cz>
Thu, 24 Jul 2008 14:09:59 +0000
(14:09 +0000)
pointer and loss of local superuser access after credetial renewal.
org.glite.lb.server/src/bkserverd.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/bkserverd.c
b/org.glite.lb.server/src/bkserverd.c
index
db486da
..
3cada5b
100644
(file)
--- a/
org.glite.lb.server/src/bkserverd.c
+++ b/
org.glite.lb.server/src/bkserverd.c
@@
-636,7
+636,7
@@
int main(int argc, char *argv[])
server_subject = strdup(mycred->name);
for ( i = 0; super_users && super_users[i]; i++ ) ;
super_users = realloc(super_users, (i+2)*sizeof(*super_users));
- super_users[i] =
mycred->name
;
+ super_users[i] =
strdup(mycred->name)
;
super_users[i+1] = NULL;
}
else {