[1468] in Moira

home help back first fref pref prev next nref lref last post

moira client crashing on Windows

daemon@ATHENA.MIT.EDU (Qing Dong)
Tue Mar 21 18:41:04 2000

Message-Id: <200003212340.SAA08166@melbourne-city-street.MIT.EDU>
Date: Tue, 21 Mar 2000 18:36:05 -0500
To: moiradev@mit.edu
From: Qing Dong <dongq@MIT.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"

I am looking at the latest registeruser changes to incorporate 
them into pismere moira gui client. I encountered a crash
when I tried to register a user. I entered "?" when prompted 
P.O box type and it crashed in the FreeInfo() call inside
RegisterUser() in user.c

if (strcmp(potype, "POP") && strcmp(potype, "IMAP"))
    {
      sprintf(temp_buf, "Unknown P.O. Box type.");
      Put_message(temp_buf);
      FreeInfo(args);
      return DM_NORMAL;
    }

args is an array of MAX_ARGS_SIZE, but it never gets fully initialized. 
I tried to initialize them to NULLs at the start of the code and that seems
to fix the problem. 

Thanks. 

Qing


home help back first fref pref prev next nref lref last post