[Vortex] Query regarding the usage of getsockname API in vortex

subrahmanya sum.sagar at gmail.com
Thu Feb 23 16:19:22 CET 2012


Thanks Francis!!

I think similar to getsockname the bug exists with usage of "getpeername"
API as well. This API also returns -1 upon failure. So this should also be
fixed.

How can I submit the patch? I've not done that till now.

Thanks
Subrahmanya

2012/2/23 Francis Brosnan Blazquez <francis at aspl.es>

> > Hi
>
> Hi Subrahmanya,
>
> > This is regarding the usage of "getsockname" API in vortex.
>
> Ok,
>
> > Vortex uses "getsockname" API to get name of the local socket and
> > checks if the operation is successful by looking at the return code. I
> > looked at the man page/help doc of Linux, AIX and Windows. This API
> > returns 0 upon success and -1 in case of failure. But vortex checks if
> > error code is less than "-1" but it does not check if error code is
> > equal to "-1". Is this intentional or is it a bug?
> >
> >
> > Shouldn't the condition be to check if the return code is equal to
> > "-1" or probably less than or equal to "-1"?
>
> Definitely it is a bug. It should check return code is less to 0. Could
> you submit a patch?
>
> Thanks for reporting, Cheers!
>
> > Thanks
> > Subrahmanya
> > _______________________________________________
> > Vortex mailing list
> > Vortex at lists.aspl.es
> > http://lists.aspl.es/cgi-bin/mailman/listinfo/vortex
>
> --
> Francis Brosnan Blázquez <francis.brosnan at aspl.es>
> ASPL
> 91 134 14 22 - 91 134 14 45 - 91 116 07 57
>
> AVISO LEGAL
>
> Este mensaje se dirige exclusivamente a su destinatario. Los datos
> incluidos en el presente correo son confidenciales y sometidos a secreto
> profesional, se prohíbe divulgarlos, en virtud de las leyes vigentes. Si
> usted no lo es y lo ha recibido por error o tiene conocimiento del mismo
> por cualquier motivo, le rogamos que nos lo comunique por este medio y
> proceda a destruirlo o borrarlo.
>
> En virtud de lo dispuesto en la Ley Orgánica 15/1999, de 13 de
> diciembre, de Protección de Datos de Carácter Personal, le informamos de
> que sus datos de carácter personal, recogidos de fuentes accesibles al
> público o datos que usted nos ha facilitado previamente, proceden de
> bases de datos propiedad de Advanced Software Production Line, S.L.
> (ASPL). No obstante, usted puede ejercitar sus derechos de acceso,
> rectificación, cancelación y oposición dispuestos en la mencionada Ley
> Orgánica, notificándolo por escrito a:
> ASPL - Protección Datos, C/Antonio Suárez 10 A-102, 28802, Alcalá de
> Henares (Madrid).
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aspl.es/pipermail/vortex/attachments/20120223/ea6081e2/attachment.htm>


More information about the Vortex mailing list