[srvx-commits] CVS: services/src proto-p10.c,1.45,1.46
Brought to you by:
entrope
|
From: Zoot <zo...@us...> - 2002-12-12 03:32:58
|
Update of /cvsroot/srvx/services/src
In directory sc8-pr-cvs1:/tmp/cvs-serv17404/src
Modified Files:
proto-p10.c
Log Message:
Fix a bug which could be triggered when a CREATE and a KILL cross each other.
Index: proto-p10.c
===================================================================
RCS file: /cvsroot/srvx/services/src/proto-p10.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -r1.45 -r1.46
*** proto-p10.c 14 Nov 2002 02:22:36 -0000 1.45
--- proto-p10.c 12 Dec 2002 03:32:56 -0000 1.46
***************
*** 872,877 ****
{
struct create_desc cd;
if (argc < 3) return 0;
! cd.user = GetUserH(origin);
cd.when = atoi(argv[2]);
parse_foreach(argv[1], NULL, create_helper, NULL, NULL, &cd);
--- 872,886 ----
{
struct create_desc cd;
+ struct userNode *user;
if (argc < 3) return 0;
!
! user = GetUserH(origin);
! if(!user) {
! /* The CREATE from this user probably crossed a KILL
! for the very same user. Bail. */
! return 0;
! }
!
! cd.user = user;
cd.when = atoi(argv[2]);
parse_foreach(argv[1], NULL, create_helper, NULL, NULL, &cd);
|