From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653647622153.tru64-unix-managers.marc@archive.invalid> From: jasper Hoon Date: Tue, 29 May 2001 11:22:31 +0000 To: tru64-unix-managers Subject: Memory fault (Coredump) with pswd validation program X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653647622153 Hi all, When I run the following password validation program, I get a Memory fault (Coredump). It compiles cleanly. We use C2 on Tru64 V4.0f Any idea why...please.?? =============== program: chpa.c =============== #include #include #include #include #include main (user, pass) char *user; char *pass; { int auth_status; int myargc; char *myargv[2]; myargc = 1; myargv[0] = "chkpass"; myargv[1] = NULL; auth_status=sia_validate_user(NULL,myargc,myargv,NULL,user,NULL,0,NULL , pass); if( auth_status != SIASUCCESS){ printf("wrong password \n"); return(1); } printf("right password \n"); return 0; } /* compile with: cc chpa.c -lsecurity -o chpa ===================== Many thanks!! ________________________________________________________________ Mid-year intake! Enrol NOW & stand a chance to win 25% discount http://www.milpark.co.za