1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

r14047: Coverity fix #17. Ensure srv_name and info cannot

be zero before deref.
Jeremy.
This commit is contained in:
Jeremy Allison 2006-03-08 20:07:24 +00:00 committed by Gerald (Jerry) Carter
parent fb1a607332
commit fbf9db6624

View File

@ -5061,6 +5061,10 @@ BOOL make_spoolss_q_addprinterdriver(TALLOC_CTX *mem_ctx,
{
DEBUG(5,("make_spoolss_q_addprinterdriver\n"));
if (!srv_name || !info) {
return False;
}
q_u->server_name_ptr = (srv_name!=NULL)?1:0;
init_unistr2(&q_u->server_name, srv_name, UNI_STR_TERMINATE);