[Fix][stack-buffer-overflow] Use gboolean when using g_variant_get for boolean. 45/184945/1 accepted/tizen/unified/20180726.064923 submit/tizen/20180725.233100
authorNishant Chaprana <n.chaprana@samsung.com>
Tue, 24 Jul 2018 10:42:45 +0000 (16:12 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Tue, 24 Jul 2018 10:46:35 +0000 (16:16 +0530)
commitf5a9f06c6a68c448944ab7e1b3d722bde9ffeef7
tree0caba97caf6cb9836218bfaabd77e011812a2233
parent73fa688aaa4387ebcae1b09857874aa7f511c7b4
[Fix][stack-buffer-overflow] Use gboolean when using g_variant_get for boolean.

Description: g_variant_get API expects reference of gboolean variable
in third parameter, and we arepassing reference of bool variable.

As per Glib's documentation, gboolean is typecast of int.
=================================================================
(Reference: https://people.gnome.org/~desrt/glib-docs/glib-Basic-Types.html#gboolean)

gboolean

typedef gint   gboolean;

A standard boolean type. Variables of this type should only contain the value TRUE or FALSE.
=================================================================

Change-Id: I89ee1d9e367efec6355d31837d3efbcb13d0fabb
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/capi-network-wifi-direct.spec
src/wifi-direct-client-proxy.c