Doh! it's my use of Ns_Realloc. I assumed it would update the pointer
itself, which it doesn't.

Correct syntax is:

cookie = Ns_Realloc(cookie, size)

Never mind the newbie... :)

Cheers,
Bas.

Dossy Shiobara said:
> On 2005.06.30, Bas Scheffers <[EMAIL PROTECTED]> wrote:
>> I have been getting my feet wet last night with my first C module and
>> of course running into some trouble.
>>
>> As you can see, I set some headers in what seems like a perfectly
>> reasonable way, but the HTTP response looks like:
>
> I've read your nscookie.c over a few times and can't get past the
> superficial problems with it to really figure out where you're going
> wrong.
>
> If you're looking for basic cookie stuff, I've thrown together some very
> simple code that's done the job very well for me:
>
>     http://panoptic.com/aolserver/cookies.tcl
>
> My sessions.tcl still isn't 100% baked yet, but I've been using it quite
> happily.  When I get some time to polish it off, I'll make it available,
> too.
>
> I also need to finish the nsxmlrpc code I started, too.  That's here:
>
>     http://panoptic.com/aolserver/nsxmlrpc/
>
> Only the XML-RPC client is really implemented -- I have working server
> code, but it's not "done" yet.
>
> -- Dossy
>
> --
> Dossy Shiobara                       mail: [EMAIL PROTECTED]
> Panoptic Computer Network             web: http://www.panoptic.com/
>   "He realized the fastest way to change is to laugh at your own
>     folly -- then you can let go and quickly move on." (p. 70)
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the
> Subject: field of your email blank.
>


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to