From: <he...@us...> - 2013-12-06 13:56:40
|
Revision: 1776 http://sourceforge.net/p/rdesktop/code/1776 Author: hean01 Date: 2013-12-06 13:56:37 +0000 (Fri, 06 Dec 2013) Log Message: ----------- Do not rename printercache blob if we dont have source and dest name. Modified Paths: -------------- rdesktop/trunk/printercache.c Modified: rdesktop/trunk/printercache.c =================================================================== --- rdesktop/trunk/printercache.c 2013-12-06 13:52:29 UTC (rev 1775) +++ rdesktop/trunk/printercache.c 2013-12-06 13:56:37 UTC (rev 1776) @@ -3,6 +3,8 @@ Entrypoint and utility functions Copyright (C) Matthew Chapman <matthewc.unsw.edu.au> 1999-2008 Copyright (C) Jeroen Meijer <je...@ol...> 2003-2008 + Copyright (C) Henrik Andersson <he...@ce...> 2013 + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -249,7 +251,8 @@ rdp_in_unistr(s, printer_length, &printer, &printer_length); rdp_in_unistr(s, driver_length, &driver, &driver_length); - printercache_rename_blob(printer, driver); + if (printer != NULL && driver != NULL) + printercache_rename_blob(printer, driver); free(printer); free(driver); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |