mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
butc: do not use stack garbage for secobj
The butc only ever handles connections over rxnull anyway, so just specify an array of security objects of length one. Reviewed-on: http://gerrit.openafs.org/9140 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com> Reviewed-by: Derrick Brashear <shadow@your-file-system.com> (cherry picked from commit 252a5b65c30636bf5f62a49a79e5777004ecd17d) Change-Id: I0b5c112f56553b7ee0ea4e40a9c65f2fe45f8297 Reviewed-on: http://gerrit.openafs.org/9404 Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@your-file-system.com> Reviewed-by: Andrew Deason <adeason@sinenomine.net> Reviewed-by: Paul Smeddle <paul.smeddle@gmail.com> Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
This commit is contained in:
parent
ecb50e7989
commit
96385ddaee
@ -835,7 +835,7 @@ static int
|
||||
WorkerBee(struct cmd_syndesc *as, void *arock)
|
||||
{
|
||||
afs_int32 code;
|
||||
struct rx_securityClass *(securityObjects[3]);
|
||||
struct rx_securityClass *(securityObjects[1]);
|
||||
struct rx_service *service;
|
||||
time_t tokenExpires;
|
||||
char cellName[64];
|
||||
@ -1084,14 +1084,13 @@ WorkerBee(struct cmd_syndesc *as, void *arock)
|
||||
*/
|
||||
|
||||
securityObjects[0] = rxnull_NewServerSecurityObject();
|
||||
securityObjects[1] = (struct rx_securityClass *)0; /* don't bother with rxvab */
|
||||
if (!securityObjects[0]) {
|
||||
TLog(0, "rxnull_NewServerSecurityObject");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
service =
|
||||
rx_NewServiceHost(host, 0, 1, "BUTC", securityObjects, 3, TC_ExecuteRequest);
|
||||
rx_NewServiceHost(host, 0, 1, "BUTC", securityObjects, 1, TC_ExecuteRequest);
|
||||
if (!service) {
|
||||
TLog(0, "rx_NewService");
|
||||
exit(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user