Ticket #163: jabberd2_fix_missing_calls_to_fclose_and_va_end.diff
| File jabberd2_fix_missing_calls_to_fclose_and_va_end.diff, 4.1 KB (added by markdoliner, 15 months ago) |
|---|
-
resolver/resolver.c
54 54 55 55 if(fprintf(f, "%d", pid) < 0) { 56 56 log_write(r->log, LOG_ERR, "couldn't write to %s: %s", pidfile, strerror(errno)); 57 fclose(f); 57 58 return; 58 59 } 59 60 … … 251 252 } 252 253 #endif 253 254 254 /* !!! pull the list of mechani rs, and choose the best one.255 /* !!! pull the list of mechanisms, and choose the best one. 255 256 * if there isn't an appropriate one, error and bail */ 256 257 257 258 /* authenticate */ -
sm/mod_disco.c
89 89 xhash_put(dest, jid_full(svc->jid), (void *) svc); 90 90 } 91 91 92 /** unify the conte stof dyn and stat */92 /** unify the contents of dyn and stat */ 93 93 static void _disco_unify_lists(disco_t d) { 94 94 log_debug(ZONE, "unifying lists"); 95 95 … … 333 333 334 334 svc->jid = jid_dup(pkt->from); 335 335 336 svc->features = xhash_new( 9);336 svc->features = xhash_new(11); 337 337 338 338 /* link it in */ 339 339 xhash_put(d->dyn, jid_full(svc->jid), (void *) svc); … … 478 478 pkt_id(pkt, result); 479 479 pkt_free(pkt); 480 480 481 /* if they have privs, the mshow them any administrative things they can disco to */481 /* if they have privs, then show them any administrative things they can disco to */ 482 482 if(aci_check(mod->mm->sm->acls, "disco", result->to)) { 483 483 nad_append_elem(result->nad, NAD_ENS(result->nad, 2), "item", 3); 484 484 nad_append_attr(result->nad, -1, "jid", mod->mm->sm->id); -
sm/main.c
80 80 81 81 if(fprintf(f, "%d", pid) < 0) { 82 82 log_write(sm->log, LOG_ERR, "couldn't write to %s: %s", pidfile, strerror(errno)); 83 fclose(f); 83 84 return; 84 85 } 85 86 -
c2s/main.c
56 56 57 57 if(fprintf(f, "%d", pid) < 0) { 58 58 log_write(c2s->log, LOG_ERR, "couldn't write to %s: %s", pidfile, strerror(errno)); 59 fclose(f); 59 60 return; 60 61 } 61 62 -
sx/sx.c
315 315 sz = pos - message; 316 316 va_start(ap, msgfmt); 317 317 vsnprintf(pos, MAX_DEBUG - sz, msgfmt, ap); 318 va_end(ap); 318 319 fprintf(stderr,"%s", message); 319 320 fprintf(stderr, "\n"); 320 321 fflush(stderr); -
s2s/main.c
52 52 53 53 if(fprintf(f, "%d", pid) < 0) { 54 54 log_write(s2s->log, LOG_ERR, "couldn't write to %s: %s", pidfile, strerror(errno)); 55 fclose(f); 55 56 return; 56 57 } 57 58 -
router/main.c
52 52 53 53 if(fprintf(f, "%d", pid) < 0) { 54 54 log_write(r->log, LOG_ERR, "couldn't write to %s: %s", pidfile, strerror(errno)); 55 fclose(f); 55 56 return; 56 57 } 57 58 -
mio/mio_impl.h
84 84 va_start(ap,msgfmt); 85 85 fprintf(stderr,"mio.c#%d: ",line); 86 86 vfprintf(stderr,msgfmt,ap); 87 va_end(ap); 87 88 fprintf(stderr,"\n"); 88 89 } 89 90 -
util/log.c
192 198 sz = pos - message; 193 199 va_start(ap, msgfmt); 194 200 vsnprintf(pos, MAX_DEBUG - sz, msgfmt, ap); 201 va_end(ap); 195 202 fprintf(stderr,"%s", message); 196 203 fprintf(stderr, "\n"); 197 204 fflush(stderr);
