Re: [vdagentd-linux] vdagentd: Do not call session_info_is_user() with invalid session_info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack

On Tue, 2017-05-16 at 19:21 +0200, Victor Toso wrote:
> From: Victor Toso <me@xxxxxxxxxxxxxx>
> 
> If we pass -X command line option which disables
> console-kit/systemd-logind integration, we will have the following
> critical being issued:
> 
>   CRITICAL **: session_info_is_user: assertion 'si != NULL' failed
> 
> This patch avoid it.
> 
> Signed-off-by: Victor Toso <victortoso@xxxxxxxxxx>
> ---
>  src/vdagentd/vdagentd.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/src/vdagentd/vdagentd.c b/src/vdagentd/vdagentd.c
> index 800a09c..7ffb890 100644
> --- a/src/vdagentd/vdagentd.c
> +++ b/src/vdagentd/vdagentd.c
> @@ -786,7 +786,9 @@ static void
> update_active_session_connection(struct udscs_connection *new_conn)
>      if (debug)
>          syslog(LOG_DEBUG, "%p is now the active session",
> new_conn);
>  
> -    if (active_session_conn && !session_info_is_user(session_info))
> {
> +    if (active_session_conn &&
> +        session_info != NULL &&
> +        !session_info_is_user(session_info)) {
>          if (debug)
>              syslog(LOG_DEBUG, "New session agent does not belong to
> user: "
>                     "disabling file-xfer");
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]