From: Rob McCool <robm@netscape.com>
Newsgroups: netscape.devs-nsapi
Subject: Re: pblock_nvinsert to rq->srvhdrs in AuthTrans fails
Date: Wed, 07 Aug 1996 15:11:36 -0700
Scott Leerssen wrote:
> In the Enterprise Server, it appears that the rq->srvhdrs pblock is
> not created at the time an AuthTrans function is called. If my
> AuthTrans function decides that a username/password is needed, a
> pblock_nvinsert("www-authenticate", "somerealm", rq->srvhdrs) will
> cause the server to spin in a tight infinite loop. After a little
> debugging, I found thet rq->srvhdrs was indeed NULL. Unfortunately,
> if I set rq->srvhdrs=pblock_create(some_number), and then try to set
> the www-authenticate name/value pair, the rq->srvhdrs I created gets
> clobbered before the response is sent back to the browser.
>
> This is different behavior than the Commerce Server, where rq->srvhdrs
> existed when I needed it.
>
> Has anyone else seen this?
No, and the code hasn't changed. srvhdrs should exist at AuthTrans
stage.
Did you recompile all of your extension's .o files when moving from 1.x
to 2.0? The offsets have changed; you might be inadvertently hitting
another one.
--
Rob McCool, robm@netscape.com http://home.netscape.com/people/robm/
Stunt Programmer, Netscape Communications Corporation
It was working ten minutes ago, I swear...
Reproduced by permission of the author.