Ticket #43071: patch-zeroconf-reg.c

File patch-zeroconf-reg.c, 723 bytes (added by RJVB (René Bertin), 7 years ago)

prevent a NULL pointer dereference in zeroconf-reg.c

Line 
1*** src/zeroconf-reg.c.orig     Tue Apr  5 20:58:58 2011
2--- src/zeroconf-reg.c  Tue Mar 25 13:25:17 2014
3***************
4*** 249,255 ****
5      }
6 
7      if (!(ctx->client = avahi_client_new(avahi_threaded_poll_get(ctx->threaded_poll), AVAHI_CLIENT_NO_FAIL, client_callback, ctx, &error))) {
8!         rs_log_crit("Failed to create client object: %s\n", avahi_strerror(avahi_client_errno(ctx->client)));
9          goto fail;
10      }
11 
12--- 249,255 ----
13      }
14 
15      if (!(ctx->client = avahi_client_new(avahi_threaded_poll_get(ctx->threaded_poll), AVAHI_CLIENT_NO_FAIL, client_callback, ctx, &error))) {
16!         rs_log_crit("Failed to create client object: %s\n", avahi_strerror(error));
17          goto fail;
18      }
19