[Vortex] Fix for vortex_connection_set_profile_mask returning an error on success.

Francis Brosnan Blazquez francis at aspl.es
Wed Dec 21 19:50:23 CET 2011


Hi Phil,

> I was trying to figure out why my call to
> vortex_connection_set_profile_mask() was returning an error. It looks
> like it’s due to an improper ordering of the statements in the
> function.  When the function is called for the first time,
> node->mask_id was getting set to -1 because axl_list_length() was
> returning -1. The error return from axl_list_length() is because
> connection->profile_masks is created on demand, and is NULL the first
> time the function is called.

Ok,

> This patch moves the assignment of the node members after the block
> that creates the list, so the node will get the correct mask_id of 0.
> 
> I also added a call to axl_free() to release the memory for the node
> if there is an error creating the axl_list for the profile_masks.

Perfect. Patch applied (svn 4916). Thanks for reporting and fixing Phil,

Cheers!

> -Phil
> 
> 
> _______________________________________________
> 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).



More information about the Vortex mailing list