| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | #include <afsconfig.h> |
| 17 | #include <afs/param.h> |
| 18 | |
| 19 | #include <roken.h> |
| 20 | |
| 21 | #include <afs/vice.h> |
| 22 | #include <rx/xdr.h> |
| 23 | |
| 24 | #include "rmtsys.h" |
| 25 | #include "sys_prototypes.h" |
| 26 | |
| 27 | #define N_SECURITY_OBJECTS1 1 /* No real security yet */ |
| 28 | |
| 29 | #include "AFS_component_version_number.c" |
| 30 | |
| 31 | int |
| 32 | main(int argc, char *argv[]) |
| 33 | { |
| 34 | struct rx_securityClass *(securityObjects[N_SECURITY_OBJECTS1]); |
| 35 | struct rx_service *service; |
| 36 | |
| 37 | #ifdef AFS_AIX32_ENV |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | struct sigaction nsa; |
| 45 | |
| 46 | sigemptyset(&nsa.sa_mask); |
| 47 | nsa.sa_handler__sigaction_u.__sa_handler = SIG_DFL((__sighandler_t *)0); |
| 48 | nsa.sa_flags = SA_FULLDUMP; |
| 49 | sigaction(SIGABRT6, &nsa, NULL((void *)0)); |
| 50 | sigaction(SIGSEGV11, &nsa, NULL((void *)0)); |
| 51 | #endif |
| 52 | |
| 53 | if (rx_Init(htons(AFSCONF_RMTSYSPORT)(__builtin_constant_p(7009) ? (__uint16_t)(((__uint16_t)(7009 )) << 8 | ((__uint16_t)(7009)) >> 8) : __bswap16_var (7009))) < 0) |
| |
| 54 | rmt_Quit("rx_init"); |
| 55 | securityObjects[0] = rxnull_NewServerSecurityObject(); |
| 56 | if (securityObjects[0] == (struct rx_securityClass *)0) |
| |
| 57 | rmt_Quit("rxnull_NewServerSecurityObject"); |
| 58 | service = |
| 59 | rx_NewService(0, RMTSYS_SERVICEID4, AFSCONF_RMTSYSSERVICE"afsrmtsys", |
| 60 | securityObjects, N_SECURITY_OBJECTS1, |
| 61 | RMTSYS_ExecuteRequest); |
| 62 | if (service == (struct rx_service *)0) |
| |
| 63 | rmt_Quit("rx_NewService"); |
| 64 | |
| 65 | |
| 66 | rx_SetMaxProcs(service, 2)((service)->maxProcs = (2)); |
| 4 | Within the expansion of the macro 'rx_SetMaxProcs':
|
a | Access to field 'maxProcs' results in a dereference of a null pointer (loaded from variable 'service') |
|
| 67 | rx_StartServer(1); |
| 68 | return 0; |
| 69 | } |