XMLRPC doesn't check for NULL error object

boombatower - April 12, 2008 - 20:07
Project:Drupal
Version:7.x-dev
Component:other
Category:bug report
Priority:normal
Assigned:boombatower
Status:closed
Description

The functions xmlrpc_errno and xmlrpc_error_msg don't check for a NULL error object to be returned. This will throw warnings when run.

The attached patch wraps the return with a check for NULL.

AttachmentSize
xmlrpc_get_error.patch677 bytes

#1

Dries - April 14, 2008 - 18:02
Status:patch (code needs review)» fixed

I've committed this patch to both DRUPAL-6 and CVS HEAD. It seems to fix some Simpletests exceptions.

#2

Anonymous (not verified) - April 28, 2008 - 18:16
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.