GSS warnings

Поиск
Список
Период
Сортировка
Искать

GSS warnings

От:
Kris Jurka <books@ejurka.com>
Дата:
Вложения:

The attached patch fixes the following warnings in src/backend/libpq

auth.c:496: warning: passing argument 2 of 'gss_release_cred' from 
incompatible pointer type
pqcomm.c:182: warning: passing argument 2 of 'gss_delete_sec_context' from 
incompatible pointer type
pqcomm.c:185: warning: passing argument 2 of 'gss_release_cred' from 
incompatible pointer type

Parts of the GSS API want the object while others want pointers to the 
object and it looks like this code got it backwards.  I haven't tested 
these changes, but they look right to me.

Kris Jurka

Re: GSS warnings

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Kris Jurka  writes:
> Parts of the GSS API want the object while others want pointers to the 
> object and it looks like this code got it backwards.  I haven't tested 
> these changes, but they look right to me.

Wouldn't the code fail entirely if it was wrong in that way?

			regards, tom lane

Re: GSS warnings

От:
Kris Jurka <books@ejurka.com>
Дата:
Вложения:


On Wed, 5 Sep 2007, Tom Lane wrote:

> Kris Jurka  writes:
>> Parts of the GSS API want the object while others want pointers to the
>> object and it looks like this code got it backwards.  I haven't tested
>> these changes, but they look right to me.
>
> Wouldn't the code fail entirely if it was wrong in that way?
>

Only if it was ever run.  My suspicion is that Port->gss->ctx/cred are 
never set to anything other than GSS_C_NO_CONTEXT and GSS_C_NO_CREDENTIAL. 
This patch also clarifies the checking we're doing on cleanup to be 
more clear about whether these are pointers or not.

Kris Jurka

Re: GSS warnings

От:
Bruce Momjian <bruce@momjian.us>
Дата:

Patch applied.  Thanks.

---------------------------------------------------------------------------


Kris Jurka wrote:
> 
> 
> On Wed, 5 Sep 2007, Tom Lane wrote:
> 
> > Kris Jurka  writes:
> >> Parts of the GSS API want the object while others want pointers to the
> >> object and it looks like this code got it backwards.  I haven't tested
> >> these changes, but they look right to me.
> >
> > Wouldn't the code fail entirely if it was wrong in that way?
> >
> 
> Only if it was ever run.  My suspicion is that Port->gss->ctx/cred are 
> never set to anything other than GSS_C_NO_CONTEXT and GSS_C_NO_CREDENTIAL. 
> This patch also clarifies the checking we're doing on cleanup to be 
> more clear about whether these are pointers or not.
> 
> Kris Jurka
Content-Description: 

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly

-- 
  Bruce Momjian            http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
FAQ